Skip to content

Instantly share code, notes, and snippets.

@download13
Created December 21, 2018 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save download13/8183ee4ee5d816031f33cead10cfdd7b to your computer and use it in GitHub Desktop.
Save download13/8183ee4ee5d816031f33cead10cfdd7b to your computer and use it in GitHub Desktop.
Strapi sample files
mutation UpdateWorkorder($input: updateWorkorderInput) {
updateWorkorder(input: $input) {
workorder {
_id
description
assignee {
_id
}
}
}
}
{"_id":"5c1c52f925b5924b5081420b","description":"desc","createdAt":"2018-12-21T02:42:01.632Z","updatedAt":"2018-12-21T03:14:06.157Z","__v":0}
{
"connection": "default",
"info": {
"name": "user",
"description": ""
},
"attributes": {
"username": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "email",
"minLength": 6,
"configurable": false,
"required": true
},
"provider": {
"type": "string",
"configurable": false
},
"password": {
"type": "password",
"minLength": 6,
"configurable": false,
"private": true
},
"resetPasswordToken": {
"type": "string",
"configurable": false,
"private": true
},
"confirmed": {
"type": "boolean",
"default": false,
"configurable": false
},
"blocked": {
"type": "boolean",
"default": false,
"configurable": false
},
"role": {
"model": "role",
"via": "users",
"plugin": "users-permissions",
"configurable": false
},
"displayName": {
"type": "string"
},
"workOrder": {
"model": "workorder",
"via": "assignee"
}
},
"collectionName": "users-permissions_user"
}
{
"connection": "default",
"collectionName": "workorder",
"mainField": "number",
"info": {
"name": "workOrder",
"description": ""
},
"options": {
"timestamps": true
},
"attributes": {
"description": {
"type": "text"
},
"assignee": {
"model": "user",
"via": "workOrder",
"plugin": "users-permissions"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment