koia
07/23/2019, 6:35 PMMike
07/23/2019, 8:42 PMMike
07/23/2019, 8:43 PMsajmil
07/23/2019, 9:46 PMsteve
07/24/2019, 6:45 AMJidé
07/24/2019, 11:39 AMvjsingh
07/24/2019, 2:56 PMvjsingh
07/24/2019, 2:57 PMvjsingh
07/24/2019, 2:57 PMJose Garcia
07/24/2019, 10:28 PMERROR: relation "public.User" does not exist
Corey Snyder
07/25/2019, 4:23 AMFILTERING
on an ENUM
type, is it possible to just filter where it has a value and is not null? I don’t want to use options_in
b/c then I have to maintain the full list of options in the ENUM.Shakle
07/25/2019, 11:36 AMCorey Snyder
07/25/2019, 1:42 PMShakle
07/25/2019, 1:45 PMfaure
07/25/2019, 2:24 PMfaure
07/25/2019, 2:26 PMIsaac Weber
07/25/2019, 6:05 PMLuke
07/25/2019, 11:58 PMtype Post
type Comment
type Upvote
item: Post || Comment
Herbert Pimentel
07/26/2019, 6:39 AMfaure
07/26/2019, 12:33 PM__typename
?Luis Gregson
07/26/2019, 3:30 PMprisma export
with version 1.33.0
and getting the following error:
> prisma export --path ./backup/prisma-data.zip
▸ Error parsing plugin /Users/luisgregson/workspace/airpay-services/node_modules/prisma/node_modules/prisma-cli-core
▸ 'MODULE_NOT_FOUND': Cannot find module 'union-value'
▸ Error parsing plugin /Users/luisgregson/workspace/airpay-services/node_modules/prisma/node_modules/prisma-cli-core
▸ 'MODULE_NOT_FOUND': Cannot find module 'union-value'
▸ Error parsing plugin /Users/luisgregson/workspace/airpay-services/node_modules/prisma/node_modules/prisma-cli-core
▸ 'MODULE_NOT_FOUND': Cannot find module 'union-value'
▸ export is not a prisma command.
▸ Perhaps you meant help
▸ Run prisma help for a list of available commands.
Anyone else getting this?Luis Gregson
07/26/2019, 3:31 PMPrisma CLI version: prisma/1.33.0 (darwin-x64) node-v8.10.0
Peter Zhou
07/26/2019, 9:41 PMexport const USER_WITH_PROJECTS_QUERY = gql`
query UserWithProjectsQuery {
me {
id {
organization {
projects {
id
name
lastUpdated
}
}
}
}
}
`;
and expect it to make only one call to the database. However, inspecting the queries made to the postgres database I see that there are actually two calls (I’ve posted the postgres logs as a reply to this)
Why is prisma not making one call for both projects? Is there no batching mechanism under the hood?Peter Zhou
07/26/2019, 9:41 PMHerbert Pimentel
07/26/2019, 9:45 PMguille
07/27/2019, 5:21 PMGraphQLScalarType
in schema.graphql
scalar DateTime
type User {
id: ID!
registered: DateTime
}
types.ts
type DateTime = string
export interface User {
id: string
registered: DateTime
}
scalars/DateTime.ts
export const DateTime = new GraphQLScalarType({
name: 'DateTime',
description: 'testing DateTime' ,
serialize: (value) => {
let result;
console.log(value);
return result;
},
parseValue: (value) => {
let result;
console.log(value);
return result;
},
parseLiteral: (ast) => {
console.log(ast);
},
});
In the resolvers.ts I've tried to import the DateTime
and added to
export const resolvers: Resolvers = {
DateTime,
User,
}
But I get the error Type '{ DateTime: GraphQLScalarType; User: Type; }' is not assignable to type 'Resolvers'.
How should I add the scalar to the server (graphql-yoga
) ?Hisco
07/27/2019, 7:56 PM${service}/${stage}
(example: foo@bar
).
While my existing schema ( example: foo
) has only one part of name.
Is it possible use an existing mysql schema with the format of foo
? without stage in the name...
Thanks in advance!Shaon
07/28/2019, 5:48 AMNeeraj Sewani
07/28/2019, 12:20 PMJeremiah
07/28/2019, 3:48 PM