cd node
npm install
npm startSurf to http://localhost:4000 for the Apollo Dev Client.
Code is in node/4.confac.
- Implement a global search function that returns users, clients and consultants (
__typename) - Implement project lookup for
consultantId- Add
@include(if: $withConsultant)directive in the schema
- Add
- Implement the projectMonth schema and resolvers.
- Implement the
Date ScalarTypefor theAudittype - Save a
Consultant.telephoneas a number but display as "(0476) 40 42 46" - Implement validation for
client.btw
// Example code for btw/iban
#> npm install --save iban
import Iban from 'iban';
Iban.isValid(client.btw)
Iban.printFormat(client.btw)
// Throw an error when it is not valid?
import { GraphQLError } from 'graphql';
throw new GraphQLError(message, {
extensions: { code: 'INVALID_IBAN' },
});- Add a transformer for adding the
user.aliasandclient.slugautomagically (seeupperDirectiveTransformer.js)
- Integrate the Apollo-Client in the React frontend instead of the current
fetch
- Setup Subscriptions to listen to changes on a collection
- Setup the Apollo Router and Federation