Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- query{
- login(email:"test@test.com",password:"test@test.com")
- }
- import {
- GraphQLNonNull,
- GraphQLString,
- GraphQLBoolean,
- } from 'graphql'
- const userQueries = {
- login: {
- type: GraphQLBoolean,
- args: {
- email: {
- type: new GraphQLNonNull(GraphQLString),
- },
- password: {
- type: new GraphQLNonNull(GraphQLString)
- }
- },
- resolve: async (source, { email, password }) => {
- console.log(email)
- console.log(password)
- Meteor.call('login', [{ user: { email: 'test@test.com' }, password: 'test@test.com' }], console.log)
- }
- },
- };
- export default userQueries
Add Comment
Please, Sign In to add comment