email: { descriptions: 'Email of the user that should receive the reset email', type: new _graphql.GraphQLNonNull(_graphql.GraphQLString)
const transformInputTypeToGraphQL = (parseType, targetClass, parseClassTypes) => { switch (parseType) { case 'String': return _graphql.GraphQLString;
const transformOutputTypeToGraphQL = (parseType, targetClass, parseClassTypes) => { switch (parseType) { case 'String': return _graphql.GraphQLString;
username: { description: 'This is the username used to log in the user.', type: new _graphql.GraphQLNonNull(_graphql.GraphQLString) }, password: { description: 'This is the password used to log in the user.', type: new _graphql.GraphQLNonNull(_graphql.GraphQLString)
email: { descriptions: 'Email of the user that should receive the verification email', type: new _graphql.GraphQLNonNull(_graphql.GraphQLString)
Object.keys(resourceConfig.attributes).forEach(attribute => { args[attribute] = { description: 'Filter string', type: graphQl.GraphQLString } })
fields () { const fields = { id: { type: new graphQl.GraphQLNonNull(graphQl.GraphQLString), description: 'The UUID of the resource' } } Object.keys(resourceConfig.attributes).forEach(attribute => { if ((attribute === 'id') || (attribute === 'type') || (attribute === 'meta')) return const joiScheme = resourceConfig.attributes[attribute] fields[attribute] = { type: joiConverter.swap(joiScheme, otherTypes), description: joiScheme._description, resolve: resolvers.search.bind(resolvers, resourceConfig, attribute) } if (joiScheme._settings) { const otherResource = joiScheme._settings.__one || joiScheme._settings.__many if (otherResource.length === 1) { fields[attribute].args = filterArgs.generate(otherResource) } } }) return fields }
description: `Delete a ${resourceConfig.resource} resource`, args: { id: { type: new graphQl.GraphQLNonNull(graphQl.GraphQLString) } }, type: allReadTypes[resource],