Skip to content

GraphQL schema operations #5993

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

Merged
merged 66 commits into from
Sep 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
ea7a6dc
Remove nested operations
davimacedo Aug 16, 2019
06fb9de
Improve error log
davimacedo Aug 16, 2019
c01700c
Fix bug schema to load
davimacedo Aug 16, 2019
ea860b0
Fix ParseGraphQLSchema tests
davimacedo Aug 16, 2019
8161013
Fix tests
davimacedo Aug 16, 2019
2d6523d
Merge branch 'upstream' into removeNestedOperations
davimacedo Aug 16, 2019
b425a16
Fix failing tests
davimacedo Aug 16, 2019
8309a17
First verstion not complete of create class mutation
davimacedo Aug 17, 2019
df58387
Fix bug caused by circular dependency
davimacedo Aug 22, 2019
a2ed1f1
Merge upstream
davimacedo Aug 22, 2019
0904762
Renaming files
davimacedo Aug 22, 2019
886458a
Schema types should be loaded before parse classes
davimacedo Aug 22, 2019
e05c6fb
Merge branch 'upstream' into graphQLSchemaOperations
davimacedo Aug 23, 2019
e7fe2e8
Fix tests
davimacedo Aug 23, 2019
9b3e2c9
Merge branch 'upstream' into graphQLSchemaOperations
davimacedo Aug 23, 2019
d948762
Create class mutation boilerplate
davimacedo Aug 23, 2019
ab4004d
Improve CreateClassSchemaInput fields names
davimacedo Aug 24, 2019
4312b20
Remove fields
davimacedo Aug 25, 2019
cc3665e
Pointer and relation fields
davimacedo Aug 25, 2019
7ec5a7d
Improve pointer default type
davimacedo Aug 25, 2019
0a51b85
Class type
davimacedo Aug 26, 2019
830cc59
Create class mutation resolver
davimacedo Aug 26, 2019
76224e1
Schema field transformers
davimacedo Aug 26, 2019
9858eb9
Class types transformations
davimacedo Aug 26, 2019
a1a4986
First test
davimacedo Aug 26, 2019
4705684
Numbers test
davimacedo Aug 26, 2019
990ed5b
Boolean tests
davimacedo Aug 26, 2019
6ac2cbe
Date test
davimacedo Aug 26, 2019
01b4b52
Fix some get tests
davimacedo Aug 26, 2019
a3a7b7b
Test for created at and updated at
davimacedo Aug 26, 2019
e949c2e
File tests
davimacedo Aug 26, 2019
080c656
Test for objects
davimacedo Aug 27, 2019
cd2f171
Renaming reducerFabric to reducerGenerator
davimacedo Aug 27, 2019
a728860
Changing get tests for file and object
davimacedo Aug 27, 2019
865d48b
Merge branch 'upstream' into graphQLSchemaOperations
davimacedo Aug 27, 2019
8ec3d85
Object composed queries test
davimacedo Aug 27, 2019
7d124bd
Array test
davimacedo Aug 27, 2019
53dbd1b
Null field test
davimacedo Aug 27, 2019
495c718
Bytes test
davimacedo Aug 27, 2019
f20287d
Geo Point test
davimacedo Aug 27, 2019
f79ea0b
Polygons tests
davimacedo Aug 27, 2019
51a2f10
Remove create generic mutation
davimacedo Aug 27, 2019
34d5679
Fix tests
davimacedo Aug 27, 2019
798d534
Create class test - isRequired and defaultValue will be added back later
davimacedo Aug 28, 2019
4423c9b
Enforce master key
davimacedo Aug 28, 2019
496eb34
Fix tests
davimacedo Aug 28, 2019
98763e2
Duplicated field test
davimacedo Aug 28, 2019
c15260e
updateClass mutation
davimacedo Aug 28, 2019
2e081e5
Remove update generic mutation tests
davimacedo Aug 28, 2019
d508528
Remove update generic mutation
davimacedo Aug 28, 2019
b73662e
deleteClass mutation
davimacedo Aug 28, 2019
edf8067
Remove delete generic mutation tests
davimacedo Aug 28, 2019
2df2db0
Remove delete generic mutation
davimacedo Aug 28, 2019
bb758a3
class query
davimacedo Aug 28, 2019
bb5e400
Classes query
davimacedo Aug 28, 2019
72c80e2
Remove get generic query from tests
davimacedo Aug 28, 2019
0c6eede
Remove remaining generic operations and fix tests
davimacedo Aug 29, 2019
50fb255
Fix last test
davimacedo Aug 29, 2019
febf15e
Try to fix redis tests
davimacedo Aug 29, 2019
ac7d7c9
Fix postgres tests
davimacedo Aug 29, 2019
7737008
Merge upstream
davimacedo Aug 30, 2019
86d1841
Update objectsMutations and objectsQueries files locations
davimacedo Aug 31, 2019
608fae9
Rename classSchema files to schema files
davimacedo Aug 31, 2019
1bfedd2
Rename ClassObject to ParseObject
davimacedo Aug 31, 2019
b040db0
Fix names and paths
davimacedo Aug 31, 2019
153718e
Still some wrong names
davimacedo Aug 31, 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
24 changes: 12 additions & 12 deletions spec/ParseGraphQLSchema.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ describe('ParseGraphQLSchema', () => {
warn: message => {
logged = true;
expect(message).toEqual(
'Query get could not be added to the auto schema because it collided with an existing field.'
'Query viewer could not be added to the auto schema because it collided with an existing field.'
);
},
},
});
await parseGraphQLSchema.load();
expect(parseGraphQLSchema.addGraphQLQuery('get', {})).toBeUndefined();
expect(parseGraphQLSchema.addGraphQLQuery('viewer', {})).toBeUndefined();
expect(logged).toBeTruthy();
});

Expand All @@ -291,12 +291,12 @@ describe('ParseGraphQLSchema', () => {
},
});
await parseGraphQLSchema.load();
delete parseGraphQLSchema.graphQLQueries.get;
delete parseGraphQLSchema.graphQLQueries.viewer;
const field = {};
expect(parseGraphQLSchema.addGraphQLQuery('get', field, true, true)).toBe(
field
);
expect(parseGraphQLSchema.graphQLQueries['get']).toBe(field);
expect(
parseGraphQLSchema.addGraphQLQuery('viewer', field, true, true)
).toBe(field);
expect(parseGraphQLSchema.graphQLQueries['viewer']).toBe(field);
});
});

Expand Down Expand Up @@ -363,14 +363,14 @@ describe('ParseGraphQLSchema', () => {
warn: message => {
logged = true;
expect(message).toEqual(
'Mutation create could not be added to the auto schema because it collided with an existing field.'
'Mutation signUp could not be added to the auto schema because it collided with an existing field.'
);
},
},
});
await parseGraphQLSchema.load();
expect(
parseGraphQLSchema.addGraphQLMutation('create', {})
parseGraphQLSchema.addGraphQLMutation('signUp', {})
).toBeUndefined();
expect(logged).toBeTruthy();
});
Expand All @@ -386,12 +386,12 @@ describe('ParseGraphQLSchema', () => {
},
});
await parseGraphQLSchema.load();
delete parseGraphQLSchema.graphQLMutations.create;
delete parseGraphQLSchema.graphQLMutations.signUp;
const field = {};
expect(
parseGraphQLSchema.addGraphQLMutation('create', field, true, true)
parseGraphQLSchema.addGraphQLMutation('signUp', field, true, true)
).toBe(field);
expect(parseGraphQLSchema.graphQLMutations['create']).toBe(field);
expect(parseGraphQLSchema.graphQLMutations['signUp']).toBe(field);
});
});

Expand Down
Loading