Skip to content

Glossary: GraphQL APIs

Interface, union and custom scalar

Also written: interface, union, custom scalar

Three further kinds of GraphQL type: an interface (fields several types share), a union (a value that is one of several types) and a custom scalar such as `DateTime`. They are useful for more advanced schemas, though a simple API can do without them.

Where the book teaches it

Related terms

Object typeScalar