Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutation createColor {
- createColor(name: "Blue") {
- id
- name
- created_at
- updated_at
- }
- }
- mutation updateColor {
- updateColor(id: 7, name: "Sky Blue") {
- id
- name
- created_at
- updated_at
- }
- }
- mutation deleteColor {
- deleteColor(id: 7) {
- id
- name
- created_at
- updated_at
- }
- }
- query colors {
- colors(count: 20) {
- data {
- id
- name
- }
- }
- }
- query color {
- color(id: 7) {
- name
- }
- }
Add Comment
Please, Sign In to add comment