graphql-compose / graphql-compose/graphql-compose-mongoose

custom fields only in createPayload, not in createInput ?

Open
#83 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

CreatePayload:

![image](https://user-images.githubusercontent.com/8463435/33793413-c51c2856-dcf2-11e7-9260-a3c1af29bd4d.png)

CreateInput:
![image](https://user-images.githubusercontent.com/8463435/33793424-d6108a62-dcf2-11e7-9cfa-c6609adddcdf.png)

Playground:
![image](https://user-images.githubusercontent.com/8463435/33793437-0208b2d4-dcf3-11e7-934c-6cfb8b60073a.png)

```js
const schema = createSchemaFields('User', {
name: String,
age: Number
})

console.log(schema.ModelTC.getType())
schema.ModelTC.addFields({
phone: 'String',
createdAt: 'String',
})
```

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.