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

    Aldrin Ronco

    11/04/2019, 5:45 PM
    Hi guys, i'm very new to prisma, and getting this message when run the command : prisma deploy
  • a

    Aldrin Ronco

    11/04/2019, 5:45 PM
    ! Could not connect to server at http://localhost:4466. Please check if your server is running.
  • a

    Aldrin Ronco

    11/04/2019, 5:46 PM
    any help would be appreciated
  • a

    Aldrin Ronco

    11/04/2019, 5:46 PM
    i run docker ps and this is the output
  • a

    Aldrin Ronco

    11/04/2019, 5:47 PM
    7afc8fb99855 prismagraphql/prisma:1.34 "/bin/sh -c /app/sta…" 17 minutes ago Up 17 minutes 0.0.0.0:4466->4466/tcp prisma_prisma_1
    n
    v
    • 3
    • 4
  • c

    Corey Snyder

    11/04/2019, 9:23 PM
    I was able to set up a schema with a Primary Product Type with 10 different Sub-Types and it actually works. I wrote about it here: http://coreysnyder.me/primsa-io-and-expanding-my-db-model/
  • b

    Basix

    11/05/2019, 3:17 AM
    Hi, I think there is type mismatch in my generated Prisma Client. I have a optional string field called
    name
    in my
    User
    type, so when I create user without name, it creates
    name: null
    in new row. But in the typescript type definition, the name field is described as
    name?: string
    , which means it cannot handle
    null
    .
  • b

    Basix

    11/05/2019, 3:17 AM
    Is this a expected behavior, or a bug?
    r
    • 2
    • 1
  • t

    Tim B

    11/05/2019, 8:22 AM
    Howdy, can anyone point me to some documentation around how to insert a record into a many to many relationtable?
    d
    • 2
    • 3
  • e

    Ehsan Sarshar

    11/05/2019, 10:25 AM
    How can I store only “Time” with prisma in mongodb
    r
    s
    • 3
    • 24
  • i

    Ivan

    11/05/2019, 1:49 PM
    @heres
  • i

    Ivan

    11/05/2019, 1:49 PM
    I have got this error message in prisma deploy command.
  • i

    Ivan

    11/05/2019, 1:50 PM
    How can I fix this?
    r
    • 2
    • 2
  • i

    Ivan

    11/05/2019, 1:51 PM
  • d

    Dima

    11/05/2019, 2:37 PM
    Hey guys, I keep getting
    ERROR: Token is issued in the future (iat).
    when trying to
    prisma deploy
    . I made sure my server and local environments are using the same timezone. I made changes to the timezones recently, so maybe the problem somehow persists from the time when they used to be different. Though I also generated new token with
    prisma token --env-file variables.env
    . Any idea where to look at?
    • 1
    • 1
  • a

    Aldrin Ronco

    11/05/2019, 3:53 PM
    Hi guys, i am running : prisma deploy and getting this message : ERROR: No cluster could be found for workspace '*' and cluster 'default', any help would be appreciated
  • e

    Ehsan Sarshar

    11/05/2019, 6:11 PM
    What if I use mongoose alongside prisma. For example I need to sort the documents according to embedded field which prisma currently not support and use custome indexing on embedded fields. So is this safe?
    🤔 1
    🐛 1
    d
    • 2
    • 3
  • t

    tmoney

    11/05/2019, 7:14 PM
    Anyone successfully gotten subscriptions to work with Prisma 1? I’m setting them up and I’m almost all the way there, but I’m getting this error back while listening to one in the Playground:
    Copy code
    {
      "errors": [
        {
          "message": "Cannot read property 'body' of undefined",
          "locations": [
            {
              "line": 149,
              "column": 3
            }
          ],
          "path": [
            "syncState"
          ]
        }
      ],
      "data": null
    }
    This is how my
    syncState
    subscription is set up:
    Copy code
    import { subscriptionField } from 'nexus';
    import { Context } from '../../dbTypes';
    
    export const syncStateSubscription = subscriptionField('syncState', {
    	type: 'SyncStateSubscriptionPayload',
    	subscribe(root, args, ctx: Context) {
    		return ctx.prisma.$subscribe.syncState() as any;
    	},
    	resolve(payload) {
    		return payload;
    	},
    });
  • t

    tmoney

    11/05/2019, 7:16 PM
    When I cmd+click into the
    syncState
    property of
    ctx.prism.$subscribe.syncState
    it is definitely available and defined:
    Copy code
    syncState: (
        where?: SyncStateSubscriptionWhereInput
      ) => SyncStateSubscriptionPayloadSubscription;
  • t

    Tim B

    11/05/2019, 8:12 PM
    https://prisma.slack.com/archives/CA491RJH0/p1572942148150900
  • n

    Nesh

    11/06/2019, 5:41 AM
    This link in the documentation leads to nowhere What’s the correct link now? https://github.com/prisma/rfcs/blob/new-ts-client-rfc/text/0000-new-ts-client.md
    n
    • 2
    • 2
  • b

    Ben

    11/06/2019, 10:45 AM
    Good morning. I recently picked up working with prisma (1) for my prototyping projects and I think it's great. However, I'm looking for a reliable way to deploy prisma backends from our gitlab-ci build system. I want to deploy both in-house (company network) and out to the world. So I was wondering... does anyone have some scripting set up I could use?
  • e

    Ehsan Sarshar

    11/06/2019, 10:54 AM
    If I manually index some field of my document in mongodb do it break prisma service ?
  • r

    rongodog

    11/06/2019, 5:46 PM
    Hi folks, my team is implementing prisma as our main application database. However, we’re hoping to share datamodel layer across multiple microservices. I’m wondering if anyone has any insight into how to do this across multiple repositories. Thanks!
  • r

    Rudy Luthi

    11/06/2019, 10:50 PM
    Quick question ... in the docs for graphql-request there's a mention of a "coming soon" example of using graphql-request with graphql-tag
  • r

    Rudy Luthi

    11/06/2019, 10:52 PM
    graphql-tag creates a graphql document when you import the query into the module. graphql-request seems to expect a template literal. Is there a way to make this work?
  • j

    James David Bradly Carballo

    11/07/2019, 3:47 AM
    Hello guys, I'm fairly new in Prisma. after typing
    prisma deploy
    , I had this error:
    Copy code
    DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
    Anyone who got a solution for this?
  • j

    James David Bradly Carballo

    11/07/2019, 3:47 AM
    Thank you very much in advance!
  • p

    Pratik

    11/07/2019, 4:54 AM
    Hello everyone. Need your review on Andrew Mead's Udemy GraphQL course. How is this course from content point of view? Has anyone taken it? Lately heard a lot about this course. https://www.udemy.com/course/graphql-bootcamp/
    g
    a
    +4
    • 7
    • 10
  • t

    Tim Holmes-Mitra

    11/07/2019, 7:11 AM
    Hi folks, i'm using the graphql-scalars package on my graphql server and everything is working as expected there. But on the client side i'm not sure what behaviour to expect. For example, if I'm the return value is DateTime, which is mapped to Date, should the client expect a string or a Date object? Is there a step in the client to support the serialisation/deserialisation of DateTime?
    c
    • 2
    • 1
1...329330331...637Latest