/golang-graphql-samples

Samples for using GraphQL in Go

Primary LanguageGoMIT LicenseMIT

GraphQL API Samples for Go

Sample apps written in Go using two popular solutions:

Sample app

Those apps use following GraphQL schema:

type Artist {
  id: ID!
  name: String!
  songs: [Song!]!
}

type Song {
  id: ID!
  title: String!
  duration: Float!
}

type Query {
  artist(id: ID!): Artist
  artists: [Artist!]!
}