dotansimha / dotansimha/graphql-code-generator-community

Generate TS SDK with boolean specifiers that generates query document at runtime?

Open
#163 1 comment 1 reaction 1 assignee Claimed by @n1ru4l View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.