You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,10 @@
4
4
5
5
Build query arguments for filter and orderBy MongoDB queries.
6
6
7
-
** This is still under development **
8
-
** TODO: prepare proper end-to-end test cases for the different filters **
7
+
Added 61 test cases, which pass against my local server.
8
+
TODO: There can be more test cases, with complex queries and a critical review of the tests.
9
+
TODO: test app to run those test cases against. Used so far my local server.
10
+
TODO: When server is up and running: rename src/__tests__/end-to-end/index-test-cases.js back to index-test-cases-test.js, in order to have it in the test run with Mocha.
9
11
10
12
## Purpose
11
13
You build a GraphQL server with the npm package "create-graphql-server", which serves as a backend to web applications. This "create-graphql-server" generates schemas, resolvers and models for an express-js server.
@@ -164,21 +166,18 @@ export default typeDefs;
164
166
Caution: Do the same again in the "test/output-app/schema/index.js" to have proper test runs.
165
167
166
168
### Installation Part 4 -- Generator for Schema for individual argument type definitions
167
-
Add to file "generate/index.js" the following two statements:
169
+
Add to file "generate/schema/index.js" the following two statements:
} from'create-graphql-server-query-arguments'; // <== here
181
175
...
176
+
...
177
+
// at the end enhance with query arguments...
178
+
constoutputSchemaWithArguments=enhanceSchemaWithQueryArguments(outputSchemaWithAuth); // <== here
179
+
180
+
return outputSchemaWithArguments; // <== here
182
181
}
183
182
```
184
183
@@ -196,4 +195,11 @@ yarn test
196
195
## Contributing
197
196
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
0 commit comments