Socket
Book a DemoInstallSign in
Socket

@gql-unicorn/codegen

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gql-unicorn/codegen - npm Package Compare versions

Comparing version

to
0.4.1

2

package.json
{
"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 [![npm version](https://badgen.net/npm/v/@gql-unicorn/runtime)](https://npm.im/@gql-unicorn/runtime) [![npm downloads](https://badgen.net/npm/dm/@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