scalars
GraphQL Joi Scalars
Usage Example
const Graphi = ;const Hapi = ;const JoiString = ; const schema = query: name: 'RootQueryType' fields: person: type: GraphQLString args: username: type: password: type: email: type: { return Promise; } ; const server = ;server;server;
Scalars
JoiAny
Supports all of the Joi Any options, passed as an object with arguments.
JoiArray
Supports all of the Joi Array options, passed as an object with arguments.
JoiBoolean
Supports all of the Joi Boolean options, passed as an object with arguments.
JoiDate
Supports all of the Joi Date options, passed as an object with arguments.
JoiNumber
Supports all of the Joi Number options, passed as an object with arguments.
JoiString
Supports all of the Joi String options, passed as an object with arguments.
Examples
const username = ;const password = ;const email = ;