tabsnotspaces
06/14/2018, 12:05 AMdatamodel
schema, i just don’t understand why it’s happeningtabsnotspaces
06/14/2018, 12:06 AMtype User @pgTable(name: "user") {
enabled: Boolean!
id: Int! @unique
is_root: Boolean!
name: String!
password_hash: String!
column_grants: [Column_grants!]!
database_grants: [Database_grants!]!
table_grants: [Table_grants!]!
}
type Database @pgTable(name: "database") {
description: String
id: Int! @unique
name: String!
database_grants: [Database_grants!]!
tables: [Table!]!
}
type Table @pgTable(name: "table") {
container_db: Database! @pgRelation(column: "container_db")
credentials: String!
description: String
id: Int! @unique
is_cached: Boolean!
name: String!
schema_columns: [Schema_column!]!
table_grants: [Table_grants!]!
}
type Schema_column @pgTable(name: "schema_column") {
description: String
id: Int! @unique
index: Int!
name: String!
table: Table! @pgRelation(column: "table")
column_grants: [Column_grants!]!
# column_obfuscation: [Column_obfuscation!]!
}
type Database_grants @pgTable(name: "database_grants") {
database: Database! @pgRelation(column: "database")
id: Int! @unique
manual: Boolean!
permission: String!
user: User! @pgRelation(column: "user")
}
type Table_grants @pgTable(name: "table_grants") {
id: Int! @unique
manual: Boolean!
permission: String!
table: Table! @pgRelation(column: "table")
user: User! @pgRelation(column: "user")
}
type Column_grants @pgTable(name: "column_grants") {
column: Schema_column! @pgRelation(column: "column")
id: Int! @unique
manual: Boolean!
permission: String!
user: User! @pgRelation(column: "user")
}
type Column_obfuscation @pgTable(name: "column_obfuscation_grants") {
# column: Schema_column! @pgRelation(column: "column")
id: Int! @unique
key: String!
manual: Boolean!
}
ryannealmes
06/14/2018, 12:34 AMryannealmes
06/14/2018, 12:34 AMryannealmes
06/14/2018, 12:35 AMryannealmes
06/14/2018, 12:35 AMhooks:
post-deploy:
- echo "Deployment finished"
- graphql get-schema
- graphql prepare
ryannealmes
06/14/2018, 12:35 AMgraphql prepare
is and I can’t find any detailed info on itryannealmes
06/14/2018, 12:36 AMNick
06/14/2018, 4:41 AMryannealmes
06/14/2018, 5:50 AMryannealmes
06/14/2018, 5:50 AMryannealmes
06/14/2018, 5:50 AMconst exists = await ctx.connectors.userService.exists.User({
email: args.email,
OR: {
username: args.username
}
});
ryannealmes
06/14/2018, 5:50 AMyolen
06/14/2018, 7:15 AMthisismissem
06/14/2018, 9:00 AMbeeman
06/14/2018, 9:28 AMronanyeah
06/14/2018, 11:52 AMprisma.yml
and use environment variables or flags or something to specifiy which one prisma deploy
should use?ronanyeah
06/14/2018, 11:52 AMLotafak
06/14/2018, 12:25 PMuser
06/14/2018, 12:26 PMnilan
06/14/2018, 12:27 PMhalborg
06/14/2018, 12:39 PMcschroeter
06/14/2018, 1:26 PMthis.apolloClient.subscribe({
query: onUserUpdate
})
.subscribe({
next: ({ data }) =>
// process data
});
Using Prisma it is complaining that it musth ave a selection of subfields.
const prisma = new Prisma();
client.subscription
.user()
.then(response => response)
.catch(e => console.log(e));
lewebsimple
06/14/2018, 1:39 PMserver.express.use(nuxt.render)
but the graphql requests fall-through to Nuxt... is there a way to make graphql-yoga's endpoints call res.end()
to prevent this? Thanks!Simme
06/14/2018, 1:49 PMzonofthor
06/14/2018, 1:51 PMGomah
06/14/2018, 1:52 PMzonofthor
06/14/2018, 1:53 PMzonofthor
06/14/2018, 1:54 PMveksen
06/14/2018, 5:09 PM