Skip to content

Allow parser to generate type definition from GraphQL type format #7

Description

@Horusiath

Given the GraphQL type format definition, maybe it's good idea to allow parser to parse them into FSharp.Data.GraphQL compatible type definition schema. Later this could be used to generate full types by the type provider.

Example:

interface Character {
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
}
type Droid implements Character {
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
primaryFunction: String
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
}
enum Episode {
NEWHOPE
EMPIRE
JEDI
}
type Human implements Character {
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
homePlanet: String
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
}
type Query {
hero(episode: Episode): Character!
human(id: String!): Human
droid(id: String!): Droid!
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions