We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To support better type safety (and code hinting) when making API calls, we should replicate the object types that are returned from the server.
It may be possible to use automatic type generation for this: https://www.apollographql.com/docs/apollo-server/workflow/generate-types/
The text was updated successfully, but these errors were encountered:
For reference, here are some manually created types:
type SpeckleStreams = { data: { streams: { items: { id: string name: string updatedAt: string }[] } } } type SpeckleBranches = { data: { stream: { branches: { items: SpeckleBranch[] } } } } type SpeckleBranch = { commits: { items: SpeckleCommit[] } } type SpeckleCommit = { authorAvatar: string; authorId: string; authorName: string; branchName: string; createdAt: string; id: string; message: string; referencedObject: string; sourceApplication: string; }
Sorry, something went wrong.
Another handy utility if the GraphQL approach is too cumbersome or doesn't work:
https://jvilk.com/MakeTypes/
No branches or pull requests
To support better type safety (and code hinting) when making API calls, we should replicate the object types that are returned from the server.
It may be possible to use automatic type generation for this: https://www.apollographql.com/docs/apollo-server/workflow/generate-types/
The text was updated successfully, but these errors were encountered: