Skip to content
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

Relay Spec #6089

Merged
merged 32 commits into from
Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7cdc3c9
Install graphql-relay
davimacedo Sep 22, 2019
eff3ed4
Merge branch 'upstream' into relaySpec3
davimacedo Sep 22, 2019
1283986
Add relayNodeInterface to ParseGraphQLSchema
davimacedo Sep 22, 2019
d2e30e8
Add support to global id
davimacedo Sep 22, 2019
d75b3ec
Add support to global id in other operations
davimacedo Sep 23, 2019
8edc480
Fix sort by glboal id
davimacedo Sep 23, 2019
94e0053
Fix where by global id
davimacedo Sep 23, 2019
f108051
Introduce IdWhereInput
davimacedo Sep 23, 2019
b536f5b
Add Relay object identification tests
davimacedo Sep 23, 2019
dd0d451
Client mutation id on createFile mutation
davimacedo Sep 23, 2019
58b9dd9
Client mutation id on callCloudCode mutation
davimacedo Sep 23, 2019
337140f
Client mutation id on signUp mutation
davimacedo Sep 23, 2019
9d689f1
Client mutation id on logIn mutation
davimacedo Sep 23, 2019
0288ebb
Client mutation id on logOut mutation
davimacedo Sep 23, 2019
204dfff
Client mutation id on createClass mutation
davimacedo Sep 23, 2019
21b474c
Client mutation id on updateClass mutation
davimacedo Sep 24, 2019
8fac91a
Client mutation id on deleteClass mutation
davimacedo Sep 24, 2019
8a68f19
Client mutation id on create object mutation
davimacedo Sep 24, 2019
3422419
Improve Viewer type
davimacedo Sep 24, 2019
e9fe1c5
Client mutation id on update object mutation
davimacedo Sep 24, 2019
ab8a49a
Client mutation id on delete object mutation
davimacedo Sep 24, 2019
789731d
Introducing connections
davimacedo Sep 26, 2019
f6635cc
Fix tests
davimacedo Sep 26, 2019
b388751
Add pagination test
davimacedo Sep 26, 2019
928b831
Fix file location
davimacedo Sep 26, 2019
e374bde
Fix postgres tests
davimacedo Sep 26, 2019
0abcbbd
Merge branch 'master' into relaySpec3
davimacedo Oct 4, 2019
a2473e1
Merge upstream
davimacedo Nov 11, 2019
35683d1
Add comments
davimacedo Nov 11, 2019
ee44932
Tests to calculateSkipAndLimit
davimacedo Nov 11, 2019
cc8b77e
Merge upstream
davimacedo Dec 2, 2019
ef8462b
Merging again
davimacedo Dec 2, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,821 changes: 483 additions & 1,338 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"follow-redirects": "1.9.0",
"graphql": "14.5.8",
"graphql-list-fields": "2.0.2",
"graphql-relay": "^0.6.0",
"graphql-tools": "^4.0.5",
"graphql-upload": "8.1.0",
"intersect": "1.0.1",
Expand Down
10 changes: 8 additions & 2 deletions spec/AuthenticationAdapters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ describe('AuthenticationProviders', function() {
Promise.prototype.constructor
);
jequal(validateAppIdPromise.constructor, Promise.prototype.constructor);
validateAuthDataPromise.then(() => {}, () => {});
validateAppIdPromise.then(() => {}, () => {});
validateAuthDataPromise.then(
() => {},
() => {}
);
validateAppIdPromise.then(
() => {},
() => {}
);
done();
});

Expand Down
28 changes: 24 additions & 4 deletions spec/MongoTransform.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ describe('parseObjectToMongoObjectForCreate', () => {
const lng3 = 65;
const polygon = {
__type: 'Polygon',
coordinates: [[lat1, lng1], [lat2, lng2], [lat3, lng3]],
coordinates: [
[lat1, lng1],
[lat2, lng2],
[lat3, lng3],
],
};
const out = transform.parseObjectToMongoObjectForCreate(
null,
Expand All @@ -107,7 +111,12 @@ describe('parseObjectToMongoObjectForCreate', () => {
}
);
expect(out.location.coordinates).toEqual([
[[lng1, lat1], [lng2, lat2], [lng3, lat3], [lng1, lat1]],
[
[lng1, lat1],
[lng2, lat2],
[lng3, lat3],
[lng1, lat1],
],
]);
done();
});
Expand Down Expand Up @@ -217,15 +226,26 @@ describe('parseObjectToMongoObjectForCreate', () => {
const lng = 45;
// Mongo stores polygon in WGS84 lng/lat
const input = {
location: { type: 'Polygon', coordinates: [[[lat, lng], [lat, lng]]] },
location: {
type: 'Polygon',
coordinates: [
[
[lat, lng],
[lat, lng],
],
],
},
};
const output = transform.mongoObjectToParseObject(null, input, {
fields: { location: { type: 'Polygon' } },
});
expect(typeof output.location).toEqual('object');
expect(output.location).toEqual({
__type: 'Polygon',
coordinates: [[lng, lat], [lng, lat]],
coordinates: [
[lng, lat],
[lng, lat],
],
});
done();
});
Expand Down
Loading