dotansimha / dotansimha/graphql-code-generator-community
Generate TS SDK with boolean specifiers that generates query document at runtime?
Open
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
> Note: this is an experiment
```ts
sdk.query({
user: { id: true, name: true, profile: { age: true }}
})
```
for union/interface:
```ts
sdk.query({
search({ term: ".." }) => ({
__User: { name: true },
__Node: { id: true }
})
})
```
Goals:
* Return `TypedDocumentNode` based on the dynamic selection.
* Acts as a query builder, not a GraphQL client.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.