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

    Akshay

    02/13/2018, 2:12 PM
    Hi guys, I was playing around with graphcool on local server and noticed that it created different db tables when adding a relation. What I wanted was to have a normalized schema where i can store ids of two related models as a foreign key. The reason for that is this db may be transferrred to a person who will do analytics on it later and I want db to be in a condition where another person can understand it and use it with his own tools. right now the relations tables have an id-name which does not say anything unless you look inside it is there a way to keep db normalized and still use graphql? What other options can i explore?
  • n

    nilan

    02/13/2018, 2:21 PM
    We just released
    prisma@1.2.0
    with a bunch of improvements and cascading deletes support: https://github.com/graphcool/prisma/releases/tag/1.2.0 Let me know how you like it! 🙂
    🚀 12
    💯 4
    parrotwave6 5
    🎉 8
    fast parrot 9
    prisma 8
    👏 4
    j
    • 2
    • 2
  • v

    Victor Bianchi

    02/13/2018, 2:44 PM
    trying to deploy to the prisma-eu1 cluster, I got this error (I'm using prisma v1.2):
    Copy code
    ERROR: Cannot query field 'description' on type 'Cluster'. (line 8, column 5):
        description
        ^
    
    {
      "data": {
        "generateClusterToken": null
      },
      "errors": [
        {
          "message": "Cannot query field 'description' on type 'Cluster'. (line 8, column 5):\n    description\n   ^",
          "locations": [],
          "path": []
        }
      ],
      "status": 200
    }
    ✔️ 1
    n
    l
    • 3
    • 5
  • a

    andre

    02/13/2018, 2:47 PM
    @andre pinned a message to this channel.
  • g

    GWitteveen

    02/13/2018, 3:21 PM
    Hi there, just started with some backend stuff and playing around with Prisma. I’m setting up a file server, have a file watcher watching for logs/files and create an entry/node when needed. Now this seems to work fine, except when the new file is supposed to replace an existing entry. Note, these mutations are called server side.
    -.js
  • g

    GWitteveen

    02/13/2018, 3:22 PM
    Untitled.pl
  • g

    GWitteveen

    02/13/2018, 3:23 PM
    Now in playground if I query the database I get back the latest added and updated nodes, if I query the app I only get back the entries that existed when the server was started. Why doesn’t it work or am I wrong in my expectations on how Prisma works?
    n
    • 2
    • 3
  • w

    wesbos

    02/13/2018, 3:29 PM
    upgraded to 1.2 and now I get this:
    Copy code
    Error: Cannot use GraphQLNonNull "[CartItem]!" from another module or realm.
    
    Ensure that there is only one instance of "graphql" in the node_modules
    directory. If different versions of "graphql" are the dependencies of other
    relied on modules, use "resolutions" to ensure only one version is installed.
    
    <https://yarnpkg.com/en/docs/selective-version-resolutions>
    
    Duplicate "graphql" modules cannot be used at the same time since different
    versions may have different capabilities and behavior. The data from one
    version used in the function from another could produce confusing and
    spurious results.
    Does npm have something similar to this?
    a
    v
    p
    • 4
    • 15
  • d

    Discere

    02/13/2018, 4:04 PM
    I am not sure who cares but the https://www.graphql-europe.org/ website has an exception at the bottom of the page in IE - uh oh!
  • d

    Discere

    02/13/2018, 4:05 PM
  • u

    user

    02/13/2018, 4:08 PM
    @Ben commented on @Discere’s file

    https://prisma.slack.com/files/U7NPQCRL3/F97RY83ED/image.png▾

    : Just being curious: did you deliberately test it in IE or is this your standard browser?
  • d

    Discere

    02/13/2018, 4:08 PM
    It is standard for our firm
    d
    n
    • 3
    • 3
  • a

    agartha

    02/13/2018, 4:14 PM
    The error message should have said: "Something unexpected happened. Someone used IE" 😄
    😎 1
    😆 5
  • a

    andykay

    02/13/2018, 5:19 PM
    So does Prisma take away the need to write connectors?
    a
    h
    +2
    • 5
    • 53
  • a

    andykay

    02/13/2018, 5:19 PM
    and something like sequelize?
  • w

    wesbos

    02/13/2018, 5:47 PM
    is it possible to specify what gets returned from an update or create command? Like we do with queries. I’m trying to return the newly created item, but also a nested item http://wes.io/pW4d
  • w

    wesbos

    02/13/2018, 5:50 PM
    DOH
  • w

    wesbos

    02/13/2018, 5:51 PM
    thats how it works, I just need to update my client side query to ask for this data
    🙈 1
  • w

    wesbos

    02/13/2018, 5:56 PM
    New question - where do I find docs for the arguments that the resolver passes us?
    async addToCart(parent, args, ctx, info) {
    n
    m
    n
    • 4
    • 17
  • a

    andykay

    02/13/2018, 6:02 PM
    @nilan when you guys say that Prisma will be merged back into the Graphcool framework does that mean that graphql-yoga and prisma will be running on the same server?
    n
    • 2
    • 3
  • s

    sean

    02/13/2018, 6:40 PM
    Anyone seeing connectivity issues today with graph.cool simple api? We’re getting sporadic 504s
  • m

    max

    02/13/2018, 6:41 PM
    yeah
  • j

    jakethrog

    02/13/2018, 6:41 PM
    Yes, I am seeing slowness and dropped connections too
  • m

    max

    02/13/2018, 6:41 PM
    I am. About to do a client demo so just loading everything into the apollo client cache before the meeting by clicking on every link 🙄 it'll look blazing fast
  • s

    sean

    02/13/2018, 6:44 PM
    @max: clever
  • m

    max

    02/13/2018, 6:45 PM
    it was until my app just crashed on something undefined 😥
  • m

    max

    02/13/2018, 6:52 PM
    looks like graphcool is back running at full speed 🙂 only a short slow down. Someone must have been stressing the service
  • p

    peter

    02/13/2018, 7:01 PM
    are there any examples demonstrating a system with
    prisma
    +
    apollo-engine
    ?
    d
    • 2
    • 8
  • l

    lawjolla

    02/13/2018, 7:03 PM
    Is there a way to upsert
    connect
    in a mutation other than manually asking if the node exists? I don't know if the node exists, so I'm not sure if I need to
    connect
    or
    create
  • l

    lawjolla

    02/13/2018, 7:18 PM
    It looks like no and
    upsert
    may be dead as a nested method. https://github.com/graphcool/prisma/issues/1280
    h
    • 2
    • 6
1...571572573...637Latest