aroman
08/28/2018, 12:20 PMresolver 2
so they can later be used by resolver 1
Gorodov Maksim
08/28/2018, 1:35 PMat=error code=H15 desc="Idle connection" method=GET
In heroku docs says about H15 error: The dyno did not send a full response and was terminated due to 55 seconds of inactivity.
It means heroku didn't get response from prisma due to request limit, right?Alejandro Poggi
08/28/2018, 2:15 PMHalo-Steven
08/28/2018, 7:22 PMHalo-Steven
08/28/2018, 7:22 PMHalo-Steven
08/28/2018, 7:22 PMHalo-Steven
08/28/2018, 7:22 PMjs
Mutation: {
createHaloAccount(_, args, ctx, info) {
// Check signature is valid for the halo address with ecRecover before assigning a deposit address
let isValid = isValidSignature(args.authPayload.message, args.authPayload.signature, args.authPayload.haloAddress);
if (isValid) {
let { address, privateKey } = web3.eth.accounts.create(web3.utils.randomHex(32));
let encryptedPrivateKey = encrypt(privateKey, MAINTESTER_PRIVATEKEY);
// Create a haloAccount if it doesn't already exist for the provided halo address
// Or update the provided account with the eth address
return ctx.prisma.mutation.createHaloAccount({
data: {
haloAddress: args.authPayload.haloAddress,
ethAccount: {
create: {
address: address,
encryptedPrivateKey: encryptedPrivateKey
}
}
},
},
info,
);
} else {
return console.error("Invalid authPayload provided for the account requested.")
}
}
}
Halo-Steven
08/28/2018, 7:23 PM# import HaloAccountWhereUniqueInput, HaloAccountCreateInput, HaloAccountUpdateInput, HaloAccount from './generated/prisma.graphql'
type Query {
haloAccount(where: HaloAccountWhereUniqueInput!): HaloAccount
}
type Mutation {
createHaloAccount(authPayload: AuthPayload!, data: HaloAccountCreateInput!): HaloAccount!
}
input AuthPayload {
haloAddress: String!
message: String!
signature: String!
}
Halo-Steven
08/28/2018, 7:23 PMHalo-Steven
08/28/2018, 7:24 PMHalo-Steven
08/28/2018, 7:24 PMconst server = new GraphQLServer({
typeDefs: "./server/graphql/schema.graphql",
resolvers,
resolverValidationOptions: {
requireResolversForResolveType: false
},
context: req => ({
...req,
prisma: new Prisma({
typeDefs: "./server/graphql/generated/prisma.graphql",
endpoint: "<http://localhost:4469>",
debug: true,
secret: PRISMA_SECRET,
})
})
});
server.start(() =>
console.log(`GraphQL server is running on <http://localhost:4000`>)
);
Halo-Steven
08/28/2018, 7:25 PMGorodov Maksim
08/29/2018, 6:25 AM[GraphQL error]: Message: The call to the group [ProjectId()] timed out., Location: undefined, Path: undefined
xiaoqf10
08/29/2018, 7:24 AMxiaoqf10
08/29/2018, 7:26 AMbr
08/29/2018, 10:20 AMprismagraphql/prisma:1.15
image on hub. It's working now.br
08/29/2018, 10:23 AMdocker-compose.yml
file correctly...
prisma introspect
▸ Couldn’t find `prisma.yml` file. Are you in the right directory?
https://github.com/prisma/prisma/blob/665eb16138dfea9082746e21743121eccfc41419/cli/packages/prisma-yml/src/PrismaDefinition.ts#L79br
08/29/2018, 10:26 AMbr
08/29/2018, 11:42 AMprisma init
in the same context:br
08/29/2018, 11:43 AMbr
08/29/2018, 11:47 AMjasonkuhrt
cory
08/29/2018, 1:35 PMTutorials > Connect to Prisma from the frontend
in version, goes to page. Click it in versionless, doesn’t do anything.cory
08/29/2018, 1:36 PMdave08
08/29/2018, 1:38 PMAnton
08/29/2018, 3:30 PMaman06
08/29/2018, 3:41 PMflamez
08/29/2018, 3:46 PMGorodov Maksim
08/29/2018, 5:15 PMHenry
08/29/2018, 7:59 PMtype Document {
id: ID! @unique
title: String!
cloudUrl: String! # <http://my-app.amazon.aws.com/ITEM_ID|my-app.amazon.aws.com/ITEM_ID> for example
localUrl: String! # I'm adding this. I want to migrate it to <http://files.my-app.com/ITEM_ID|files.my-app.com/ITEM_ID>
}
I guess I’m just looking for a way to run a custom migration script as part of the deployment process.