Luke
03/07/2018, 4:18 AMLuke
03/07/2018, 4:19 AMLuke
03/07/2018, 4:24 AMiamclaytonray
03/07/2018, 4:39 AMlastmjs
03/07/2018, 7:04 AMDeploying service `backend` to stage `dev` on cluster `local` 38ms
Service is already up to date.
Hooks:
Checking, if schema file changed 72ms
Writing database schema to `src/generated/prisma.graphql` 1ms
Running $ graphql prepare...
▸ Syntax Error GraphQL request (25:3) Expected Name, found String
▸
▸ 24: type BatchPayload {
▸ 25: """
▸ ^
▸ 26: The number of nodes that have been affected by the Batch operation.
▸
▸
borisgefter
03/07/2018, 10:55 AMVendicto
03/07/2018, 10:59 AMMax Hodges
03/07/2018, 11:36 AMMax Hodges
03/07/2018, 11:39 AMMax Hodges
03/07/2018, 11:41 AMKyle Gammon
03/07/2018, 11:53 AMAvi Block
03/07/2018, 12:38 PMuser
03/07/2018, 12:39 PMhttps://prisma.slack.com/files/U8ZQADW1H/F9M0JS6LF/image.png▾
Avi Block
03/07/2018, 12:39 PMVendicto
03/07/2018, 12:52 PMparweb
03/07/2018, 1:23 PMparweb
03/07/2018, 1:23 PMtype User {
id: ID!
email: String!
location: Location!
}
type Location {
id: ID!
lat: Float!
lng: Float!
user: User
street: String
postalCode: String
city: City
}
type City {
id: ID!
name: String!
country: Country!
locations: [Location!]!
areas: [Area!]!
}
parweb
03/07/2018, 1:24 PMparweb
03/07/2018, 1:25 PMtype Mutation {
addLocationUser(location: LocationCreateInput): User!
}
parweb
03/07/2018, 1:26 PMimport { getUserId, Context } from '../../utils'
export async function addLocationUser(parent, args, ctx: Context, info) {
const userId = getUserId(ctx)
const user = await ctx.db.mutation.updateUser({
where: { id: userId },
data: {
location: { upsert: args },
},
})
return user
}
parweb
03/07/2018, 1:28 PMjohannpinson
03/07/2018, 1:36 PMpicosam
03/07/2018, 1:40 PMMaxime Scibetta
03/07/2018, 2:10 PMhttps://puu.sh/zCwzY/6e2fb0e0a1.png▾
Maxime Scibetta
03/07/2018, 2:13 PMharrisrobin
03/07/2018, 2:26 PMMaxime Scibetta
03/07/2018, 3:15 PMmutation addQuiz{
createQuestion(data: {
name: "Service de vote",
quiz: "cjeh7r7m8xvuh01044kxpy3s4",
status: OPEN,
}) {
id
}
}
Matt
03/07/2018, 3:21 PMVakrim
03/07/2018, 4:12 PMrcy
03/07/2018, 6:47 PM