Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microcosm-graphql: Interfaces #420

Open
nhunzaker opened this issue Sep 21, 2017 · 0 comments
Open

microcosm-graphql: Interfaces #420

nhunzaker opened this issue Sep 21, 2017 · 0 comments

Comments

@nhunzaker
Copy link
Contributor

nhunzaker commented Sep 21, 2017

Microcosm GraphQL knows no concept of interfaces:

http://graphql.org/learn/schema/#interfaces

interface Character {
  id: ID!
  name: String!
  friends: [Character]
  appearsIn: [Episode]!
}

type Human implements Character {
  id: ID!
  name: String!
  friends: [Character]
  appearsIn: [Episode]!
  starships: [Starship]
  totalCredits: Int
}

type Droid implements Character {
  id: ID!
  name: String!
  friends: [Character]
  appearsIn: [Episode]!
  primaryFunction: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant