Skip to content

TallPaulRyan/graphql_rubyconf

Repository files navigation

README

Simple RoR/GraphQL review from this resource: https://www.youtube.com/watch?v=COmNrys1Khc

Example Queries & Mutations

query {
  authors {
    id
    name
    email
    bookCount
    books {
      name
      description
      chapters {
        name
        authorName
      }
    }
  }
}
query {
  author(id: 2) {
    id
    name
    email
    bookCount
    books {
      name
      description
      chapters {
        name
        authorName
      }
    }
  }
}
mutation {
  createAuthor( 
    input: {
    	name: "Tall Paul"
			email: "tallpaul@email.com"
    }) {
    author {
      name
      id
    } errors
  }
}
mutation {
  updateAuthor( 
    input: {
    	name:"Taller Paul"
			id:3
    }) {
    author {
      name
      id
    } errors
  }

About

Refresh on Rails/GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published