https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • d

    diego dutra

    04/27/2020, 6:31 PM
    hey gauys how can its?
    p
    • 2
    • 2
  • d

    diego dutra

    04/27/2020, 6:31 PM
    1. Deploy your Prisma service: prisma deploy diegodutra@MBP-de-Diego aph_backend % prisma deploy ▸ Could not connect to server at http://localhost:4466. Please check if your ▸ server is running. Get in touch if you need help: https://slack.prisma.io To get more detailed output, run $ export DEBUG="*" (node:2898) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated diegodutra@MBP-de-Diego aph_backend % prisma generate diegodutra@MBP-de-Diego aph_backend % $ export DEBUG="*"
  • c

    Calin Zapan

    04/27/2020, 8:08 PM
    Hello everyone! I’m currently migrating my app from graph.cool to prisma, it may take some time tho… and I just noticed that my subscriptions started failing suddenly. Is it a issue with Graphcool?
  • c

    Calin Zapan

    04/27/2020, 8:24 PM
    I get the following message: ’The operation couldn’t be completed. (OSStatus error -9807.)
  • s

    Shehab

    04/28/2020, 12:46 AM
    Is there a way to query my db where a field is not null? like db.post.findMany({where{category !null}}) or something?
    a
    o
    +3
    • 6
    • 11
  • s

    Shehab

    04/28/2020, 1:40 AM
    Is there a performance difference between using a prisma function like .users() at the end of a db query vs querying the table directly for users? If so which is best, seems .users() gets a record first then finds related users so seems less effective then just querying users table directly?
    👍 1
    r
    • 2
    • 6
  • o

    Oscar

    04/28/2020, 12:58 PM
    Is there a new way to seed the database? I can't find it in the documentation
    r
    • 2
    • 2
  • r

    Robert Westbury

    04/28/2020, 3:17 PM
    So I have this model here: https://github.com/robertwestbury/Typus/blob/feat/security/backend/prisma/schema.prisma#L48, and I create the model (through the
    Form
    model) here: https://github.com/robertwestbury/Typus/blob/feat/security/backend/src/controllers/FormController.ts#L33. When it's created, it's created like this:

    https://i.imgur.com/vk8gxHH.png▾

    (test-20d0) is the id of the parent
    Form
    . When I try to change the
    recaptcha
    field, my changes get put into the
    honey
    field and it goes back to the id of the
    Form
    . I have been struggling with this for hours now and this is pretty demotivating 😕
    r
    • 2
    • 1
  • j

    Jared Carbonneau

    04/28/2020, 7:44 PM
    Hi everybody! I'm doing a demo tomorrow to introduce my team to graphql. I wanted to use the starwars data here: https://www.graphqlbin.com/v2/6RQ6TM. But I cant show mutations. Is the repo and data available somewhere so i can run it locally?
  • r

    Robert Westbury

    04/28/2020, 8:08 PM
    Okay, update on my above message ^. It's a prisma studio error.
    👍 1
  • r

    Robert Westbury

    04/28/2020, 8:09 PM
    Although no errors are shown in the console
  • s

    Shehab

    04/28/2020, 11:33 PM
    There's a restriction in prisma update, I cannot set a nullable foreign key column to null? When i try to directly set the foreign key to any value it throws an error say i need to basically access the field relation and not the key i.e using connect. However, I cannot use connect and pass in a null id, so i instead added a conditional checking if the foreign key id is not null, if so use connect to update the value using the id, otherwise return null. However returning null does not update the value to null. Raised issue https://github.com/prisma/prisma/issues/2324
  • y

    Yiğit Rüzgar

    04/30/2020, 12:03 AM
    Hi everyone. There is an issue with prisma-examples. STEP 1 ) I downloaded graphql-apollo-server from prisma-examples I changed datasource information as http://prntscr.com/s8b5m6 STEP 2 ) npm install and OKEY http://prntscr.com/s8b7rf STEP 3 ) npx prisma introspect and OKEY http://prntscr.com/s8b980 STEP 4 ) npx prisma generate and OKEY http://prntscr.com/s8banz STEP 5 ) But now there is a problem. (Or I dont know true way) schema.graphql's codes didnt change. // Same with initilization codes http://prntscr.com/s8bbpm and schema.ts file is same also. http://prntscr.com/s8bcv0 How can I auto generate this two files. Because of these problems, I cannot go forward. Thanks for helps.
  • y

    Yiğit Rüzgar

    04/30/2020, 12:09 AM
    💬 Is there a way to regenerate Nexus Codes in script.ts after introspect
  • o

    Oscar

    04/30/2020, 12:40 AM
    Are graphql subscriptions implemented in prisma 2?
    r
    • 2
    • 1
  • e

    Ethan Pursley

    04/30/2020, 12:41 AM
    Only in prisma 1, but they don’t scale
  • k

    Kyle Selman

    04/30/2020, 12:41 AM
    Hey guys, any way of building Apollo subscriptions and using Prisma as the data layer? if so, any resources on it?
    r
    • 2
    • 1
  • o

    Oscar

    04/30/2020, 12:41 AM
    lol same question here
  • k

    Kyle Selman

    04/30/2020, 12:41 AM
    Yeah just saw everyone asking the same
  • k

    Kyle Selman

    04/30/2020, 12:42 AM
    Im pretty sure we should be able to leverage them with Apollo, just no idea where to start
  • e

    Ethan Pursley

    04/30/2020, 12:42 AM
    The subscription support in prisma 1 is bad, which is why it has yet to be transitioned over to prisma 2. The engineers of prisma recommend you use something like Hasura if you want to use subscriptions.
  • o

    Oscar

    04/30/2020, 12:44 AM
    Never used it. Is it easy to use?
  • o

    Oscar

    04/30/2020, 12:44 AM
    I would rather do api calls every 1 second to fetch notifications than implement Hasura tbh. For me it isn't a real problem
  • e

    Ethan Pursley

    04/30/2020, 12:44 AM
    Hasura? I hear it’s really simple and easy to use
  • o

    Oscar

    04/30/2020, 12:45 AM
    Well it is open source. Mind as well give it a try
  • o

    Oscar

    04/30/2020, 12:47 AM
    I can even use the migrations of prisma to generate the database and the api and hasura only for the subscription part
  • l

    Lars-Jørgen Kristiansen

    04/30/2020, 5:36 AM
    Anyone upgraded from prisma 1 + nexus to prisma 2? How hard was the migration?
    r
    • 2
    • 2
  • y

    Yiğit Rüzgar

    04/30/2020, 8:45 AM
    Hi everyone. There is an issue with prisma-examples. STEP 1 ) I downloaded graphql-apollo-server from prisma-examples I changed datasource information as http://prntscr.com/s8b5m6 STEP 2 ) npm install and OKEY http://prntscr.com/s8b7rf STEP 3 ) npx prisma introspect and OKEY http://prntscr.com/s8b980 STEP 4 ) npx prisma generate and OKEY http://prntscr.com/s8banz STEP 5 ) But now there is a problem. (Or I dont know true way) schema.graphql's codes didnt change. // Same with initilization codes http://prntscr.com/s8bbpm and schema.ts file is same also. http://prntscr.com/s8bcv0 How can I auto generate this two files. Because of these problems, I cannot go forward. [💬 Is there a way to regenerate Nexus Codes in script.ts after introspect] Thanks for helps.
    r
    a
    • 3
    • 66
  • y

    Yiğit Rüzgar

    04/30/2020, 10:16 AM
    @Ahmed is wonderful man.
    🙏 3
    ❤️ 1
    💯 1
    a
    • 2
    • 4
  • y

    Yiğit Rüzgar

    04/30/2020, 10:17 AM
    i owe him thanks
    👍 1
1...368369370...637Latest