Nasser Alsaeed
10/30/2019, 6:40 PMNasser Alsaeed
10/30/2019, 6:51 PMCharlie
10/31/2019, 12:47 AMconst createUser = async (parent, args, context, info) => {
const user = await context.prisma.createUser({
name: args.name
});
const workspaces = await context.prisma.updateManyWorkspaces({
where: {
id_in: args.workspaces
},
data: {
users: [{
connect: {
id: user.id
}
}]
}
});
return user;
}
Charlie
10/31/2019, 12:48 AMVariable '$data' expected value of type 'WorkspaceUpdateManyMutationInput!' but got:...
does anyone have any suggestions for fixing the above query?Corey Snyder
10/31/2019, 1:56 AMconst flightController = await context.prisma.droneBuild({id: args.buildId}).flightController()
const esc = await context.prisma.droneBuild({id: args.buildId}).esc()
const vtx = await context.prisma.droneBuild({id: args.buildId}).vtx()
const receiver = await context.prisma.droneBuild({id: args.buildId}).receiver()
const camera = await context.prisma.droneBuild({id: args.buildId}).camera()
const motor = await context.prisma.droneBuild({id: args.buildId}).motor()
const propeller = await context.prisma.droneBuild({id: args.buildId}).propeller()
const frame = await context.prisma.droneBuild({id: args.buildId}).frame()
const antenna = await context.prisma.droneBuild({id: args.buildId}).antenna()
const battery = await context.prisma.droneBuild({id: args.buildId}).battery()
deactivateduser
10/31/2019, 10:46 AM{
"entity": {
"type": {
"id": 1,
"filter": true
}
}
}
Is my only option to create another type for "type"? If so, what if I want to insert that entity now but the "type" is not in the database (no type with id 1)? Can I create both in one operation?Chris Zempel
10/31/2019, 12:52 PMDaniel Engdahl
10/31/2019, 2:44 PMprisma deploy
on Windows due to our network policys/self signed certificates. It seems as prisma
does not use the .npmrc
config to read my custom certification file. Is there any way to set a custom cafile for prisma
or any other way around this issue? Posting error message in thread.evan
10/31/2019, 3:55 PMtype Account {
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
I have the corresponding type-graphql type:
@ObjectType()
export class Account {
@Field()
createdAt: Date
@Field()
updatedAt: Date
}
However, createdAt and updatedAt are never applied to the record. Any ideas?Hugo Marques
10/31/2019, 8:46 PMdeactivateduser
10/31/2019, 8:50 PMgem
10/31/2019, 9:16 PMlucid_frog
10/31/2019, 10:29 PMlucid_frog
11/01/2019, 2:06 AMtsconfig.json
file:
{
"compilerOptions": {
"moduleResolution": "node",
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"outDir": "./build",
"sourceMap": true,
"lib": ["es2016", "esnext.asynciterable", "dom"],
"types": ["bcrypt", "body-parser", "cors", "express", "passport", "jsonwebtoken"]
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"node_modules/apollo-utilities",
"build",
"**/*.spec.ts",
]
}
vigneshkb
11/01/2019, 6:47 AMprisma deploy
.Deploying service default
to stage default
to server default
773ms
Errors:
Mutation
✖️ One field of the type Mutation
must be marked as the id field with the @id
directive.
✖️ The type Mutation
has is using a reserved type name. Please rename it.Richard Ward
11/01/2019, 6:56 AMvigneshkb
11/01/2019, 8:49 AMConstantinos N
11/01/2019, 12:25 PMSullivan Senechal
11/01/2019, 4:05 PMSullivan Senechal
11/01/2019, 4:12 PMAndrew O.
11/01/2019, 5:55 PMNesh
11/01/2019, 6:06 PMNesh
11/01/2019, 6:06 PMArcticSpaceFox
11/01/2019, 6:44 PMArcticSpaceFox
11/01/2019, 6:52 PMSullivan Senechal
11/01/2019, 7:35 PMRocketninja16
11/01/2019, 8:47 PMJose Segura
11/01/2019, 9:24 PMJose Segura
11/01/2019, 9:25 PMArcticSpaceFox
11/01/2019, 9:27 PM