|
|
|
|
|
by weatherlight
3542 days ago
|
|
I'm in the process of rewriting our external api using GraphQL, It's kind of amazing, I do find my self tripping on "best practices" e.g. pertaining to a User view model query {user {name}}
query {users(someQualifier: $qualifier){name}}
mutation {createUser(name: $name) {name}}
mutation {updateUser(id: $id, name: $name){name}}
mutation {destroyUser(id: $id) {name}} It ends up looking like CRUD. But so much easier to reason about :) |
|