mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
Remove an unnecessary field
This commit is contained in:
parent
3f6c3a7a99
commit
a2db7c5dae
|
@ -15,7 +15,6 @@ character in the Star Wars trilogy:
|
||||||
id = graphene.ID(required=True)
|
id = graphene.ID(required=True)
|
||||||
name = graphene.String(required=True)
|
name = graphene.String(required=True)
|
||||||
friends = graphene.List(lambda: Character)
|
friends = graphene.List(lambda: Character)
|
||||||
appears_in = graphene.List(Episode, required=True)
|
|
||||||
|
|
||||||
|
|
||||||
Any ObjectType that implements ``Character`` will have these exact fields, with
|
Any ObjectType that implements ``Character`` will have these exact fields, with
|
||||||
|
@ -51,14 +50,12 @@ The full GraphQL schema defition will look like this:
|
||||||
id: ID!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
friends: [Character]
|
friends: [Character]
|
||||||
appearsIn: [Episode]!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Human implements Character {
|
type Human implements Character {
|
||||||
id: ID!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
friends: [Character]
|
friends: [Character]
|
||||||
appearsIn: [Episode]!
|
|
||||||
starships: [Starship]
|
starships: [Starship]
|
||||||
homePlanet: String
|
homePlanet: String
|
||||||
}
|
}
|
||||||
|
@ -67,7 +64,6 @@ The full GraphQL schema defition will look like this:
|
||||||
id: ID!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
friends: [Character]
|
friends: [Character]
|
||||||
appearsIn: [Episode]!
|
|
||||||
primaryFunction: String
|
primaryFunction: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user