-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: fetch with including specific or all keys #74
Conversation
Codecov Report
@@ Coverage Diff @@
## main #74 +/- ##
==========================================
+ Coverage 78.91% 78.97% +0.06%
==========================================
Files 61 61
Lines 4870 4903 +33
==========================================
+ Hits 3843 3872 +29
- Misses 1027 1031 +4
Continue to review full report at Codecov.
|
@dplewis a question for you about your PR parse-community/Parse-SDK-JS#631 Can you tell me how the URI should look? My interpretation is that they should be query parameters, so the URI's would look something like:
and
I'm sure I'm doing something wrong as I'm still getting back pointers. You can see my test case below: Parse-Swift/Tests/ParseSwiftTests/ParseObjectTests.swift Lines 242 to 272 in 14f401b
|
Maybe I misread, was the PR never merged on the server, only in the JS SDK? |
FetchwithInclude is basically like a query with include so it should work on the server. Are you setting the pointer fields in your test case? |
Yes, my output from connecting to an actual server in playgrounds is below:
|
To this point, when fetching a single object, I use .GET and the URI as stated in the REST API docs, but for |
I've never tried it with the installation class. I can run some tests |
I tried it with It's possible I'm making the URI incorrectly. |
@dplewis looks like I had it working. The problem was my debugDescription for print was encoding ParseObjects as back to pointers. |
@TomWFox can you review the docs? It's basically the same line added for all fetch methods |
Co-authored-by: Tom Fox <13188249+TomWFox@users.noreply.github.com>
Nice! I should add this to the iOS SDK |
fetch(includeKeys: [String]? = nil)
andfetchPublisher(includeKeys: [String]? = nil)
to allParseObjects
.Non breaking...