@serodigital/pathways-gql-typings
v0.0.4
Published
This is a skeleton template for a Sero GQL client.
Downloads
3
Readme
Sero GQL Client Skeleton
This is a skeleton template for a Sero GQL client.
Make sure to update the package.json file with the name of your client.
The structure of the client should not be changed unless necessary. This makes sure we keep consistency across all clients. The GQL client is not bound to any specific auth provider. If you need to add a new auth strategy please make sure to add it here and notify the team so we can update all clients.
Note we could build this out as a command line application wherein we could run an update command inside our GQL clients to make sure they are up to date. This would remove the need to manually update the client in a more error-prone manner.
Example
new ApiClient({
apiUri: "https://api.test",
authStrategy: {},
});