@gql-unicorn/codegen
Advanced tools
Comparing version
{ | ||
"name": "@gql-unicorn/codegen", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "zozzz", |
@@ -83,5 +83,5 @@ # GraphQL Unicorn [](https://npm.im/@gql-unicorn/runtime) [](https://npm.im/@gql-unicorn/runtime) | ||
```typescript | ||
import { mutationCreateUser } from "genrated-pacakge-name" | ||
import { createUser } from "genrated-pacakge-name" | ||
const CreateUser = mutationCreateUser({ name: "Some User Name" }, q => q.id.name) | ||
const CreateUser = createUser({ name: "Some User Name" }, q => q.id.name) | ||
``` | ||
@@ -153,14 +153,4 @@ | ||
* nested variables: | ||
```ts | ||
queryUsers({filter: { id: $("userId"), name: $ /*filter__id*/ }}) | ||
``` | ||
```gql | ||
query (userId: ID!, $filter__id: String) { | ||
users(filter: { id: $userId, name: $filter__id }) | ||
} | ||
``` | ||
* find a way to replace `$$` with `$`, or something more intuitive than `$$` | ||
* find a way to use `$.varName` instead `$("varName")` | ||
* handle aliases: `queryUsers(q => q.id("userId").parent("userParent", q => q.id))` | ||
* handle aliases: `queryUsers(q => q.id("userId").attr("name", { name: "name" }, q => q.value).attr("age", { name: "age" }, q => q.value))` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77452
0.28%607
0.5%155
-6.06%