welf
10/10/2017, 4:27 PMinterface SomeInterface {
id: ID! @isUnique
users: [User!]! @relation(name: "SomeRelationOnUser")
isPuplished: Bool! @defaultValue(value: false)
}
… and a type which implements this interface:
type SomeType implements SomeInterface {
id: ID!
users: [User!]!
isPublished: Bool!
}
… should I repeat all those @isUnique
, @defaultValue
and @relation
in the type declaration or it will be inherited from interface?agartha
10/10/2017, 4:37 PMwelf
10/10/2017, 4:41 PMwelf
10/10/2017, 6:06 PMjferrettiboke
10/10/2017, 6:12 PMwelf
10/10/2017, 6:19 PMtype YourTypeName implements Node
. Node
is interface, so Graphcool is supporting interfaces at least internally.
Where can I read which pieces of GraphQL specification are supported by Graphcool and which aren’t?jferrettiboke
10/10/2017, 6:25 PMNode
and is declared internally to take control about declaring the minimum fields on each type
. At the moment, id
field is the only obligatory field but a while ago createdAt
and updatedAt
were obligatory too.jferrettiboke
10/10/2017, 6:26 PMjferrettiboke
10/10/2017, 6:35 PMwelf
10/10/2017, 6:41 PMjferrettiboke
10/10/2017, 6:43 PMunion
is not supported.jferrettiboke
10/10/2017, 6:44 PMagartha
10/10/2017, 7:26 PMunion
and interface