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

    pasa

    02/26/2018, 8:31 PM
    The list already exists, only the ListElement is new.
  • r

    ruben

    02/26/2018, 8:31 PM
    oh you are creating an entry in the list
  • r

    ruben

    02/26/2018, 8:31 PM
    not a new list
  • p

    pasa

    02/26/2018, 8:32 PM
    Nope. πŸ™‚
  • r

    ruben

    02/26/2018, 8:32 PM
    in that case, it should be like this
  • p

    pasa

    02/26/2018, 8:32 PM
    They are completely separated in my frontend, so I create the lists in another step.
  • r

    ruben

    02/26/2018, 8:32 PM
    -.txt
  • p

    pasa

    02/26/2018, 8:33 PM
    Okay, but wouldn't the id of ListEntry be equal to the id of the list?
  • r

    ruben

    02/26/2018, 8:33 PM
    it depends on what you are returning there. Are you returning the list or the entry?
  • p

    pasa

    02/26/2018, 8:35 PM
    This mutation should generate a new ListEntry with a randomly generated id, a task, that is given by the frontend and an association to an already existing list, with an id that is already given in the frontend.
  • h

    harmony

    02/26/2018, 8:35 PM
    it should probably be
    listId: $listId
    and
    $listId: ID!
  • r

    ruben

    02/26/2018, 8:36 PM
    Yeah that works to^
  • r

    ruben

    02/26/2018, 8:36 PM
    the first returned id will be the id of the ListEntry
  • p

    pasa

    02/26/2018, 8:36 PM
    Oh i didn't know I could reference on the Id of an associated field like this.
  • p

    pasa

    02/26/2018, 8:37 PM
    @harmony I will try this out real quick.
  • h

    harmony

    02/26/2018, 8:37 PM
    you'll obviously have to write the resolver accordingly
  • h

    huv1k

    02/26/2018, 8:38 PM
    guys please stick to threads ❀️
  • r

    ruben

    02/26/2018, 8:40 PM
    Sorry about that @huv1k πŸ™‚ Unrelated question -- I'm working on integrating the Shopify GraphQL API. I've read this entry here: https://blog.graph.cool/graphql-schema-stitching-explained-schema-delegation-4c6caf468405, but does anyone know of any sample repos or tutorials on how to implement schema stitching with Prisma?
    h
    • 2
    • 5
  • p

    pasa

    02/26/2018, 8:40 PM
    Sorry @huv1k, I didn't know how to create one.
  • h

    harmony

    02/26/2018, 8:40 PM
    hover over the message
    p
    • 2
    • 3
  • p

    pasa

    02/26/2018, 8:44 PM
    @ruben @harmony Thank you both for your help! πŸ‘ πŸ’― I'm gonna dig myself into the documentation some more. Do you know of some good reference for learning the basics, besides the official documentation?
    h
    r
    • 3
    • 4
  • s

    serianox

    02/26/2018, 10:21 PM
    hi guys is it currently possible to do aggregations using prisma like avg, sum, etc ? or is it possible to make the raw sql query at least?
    🎡 1
  • p

    pasa

    02/26/2018, 10:29 PM
    I've got another question for you guys... πŸ˜‰ How are the requests counted? I mean the requests, that are set to be the limits between the different billing plans. I'm currently using the free plan, as my project is still in building status, but even tough I create new entries on graph.cool trough API calls and fetch dozens or even hundreds of entries while testing, the request counter stays at 0.
  • p

    pasa

    02/26/2018, 10:31 PM
    Do regular fetches even count as request or are they ignored in this case? If polls are included in these 100000 allowed requests, my guess would be, that the limit would be reached quite fast, with a relatively small user group. I'm currently refetching the contents of my subpages every 5 seconds, to get the changes on the server, for example.
    • 1
    • 1
  • d

    doug_w

    02/26/2018, 10:58 PM
    Any freelancers looking to pickup 10-20 hours a week for 2-3 months? Our stack: graphcool-framework, apollo, react, redux, material ui, etc. DM me for details, thanks!
    m
    • 2
    • 1
  • h

    harmony

    02/26/2018, 11:07 PM
    I'll switch you to preact
    pokemon charmander 1
    😍 1
  • h

    harmony

    02/26/2018, 11:07 PM
    I mean wat
  • m

    Michael Jones

    02/26/2018, 11:32 PM
    Hello, does anyone have any idea on how to go about grabbing a value and updating it when creating a new node on pre-Prisma (The older Graphcool)? AKA, grab the most recent count and add one to it when creating a new node.
  • m

    mxmzb

    02/27/2018, 12:09 AM
    guys can anyone tell me if the @isUnique directive is own to Graphcool related projects but not actually a thing in original graphql itself?
  • m

    mxmzb

    02/27/2018, 12:09 AM
    and if so, what’s the approach to make a @isUnique directive for normal graphql?
1...589590591...637Latest