Created
December 21, 2018 18:56
-
-
Save download13/8183ee4ee5d816031f33cead10cfdd7b to your computer and use it in GitHub Desktop.
Strapi sample files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation UpdateWorkorder($input: updateWorkorderInput) { | |
updateWorkorder(input: $input) { | |
workorder { | |
_id | |
description | |
assignee { | |
_id | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"_id":"5c1c52f925b5924b5081420b","description":"desc","createdAt":"2018-12-21T02:42:01.632Z","updatedAt":"2018-12-21T03:14:06.157Z","__v":0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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