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

    piscis

    10/04/2017, 3:25 PM
    Hi I have a question regarding nested data lets say USER <-> Friends <-> USER how would you prevent Queries basically requests The Friends of a User of a User of a User of a User of a User … does GraphQL support any mechanism to avoid such queries?
  • e

    eruby

    10/04/2017, 4:16 PM
    Can you clarify your question? This is a many to many relationship from User to User?
  • a

    albinekb

    10/04/2017, 4:18 PM
    Don’t request more than one level of friends? @piscis
  • p

    piscis

    10/04/2017, 4:22 PM
    But if this is a public API this could be a potential attack vector.
  • p

    piscis

    10/04/2017, 4:23 PM
    Not that I want to write such queries just want to ask what would be the best practice to protect against it
  • a

    albeik

    10/04/2017, 5:08 PM
    @cball I have noticed that yesterday too — had to refresh to reload the proper page
  • n

    nilan

    10/04/2017, 5:08 PM
    thanks @cball and @albeik, will look into that 🙂
  • a

    albeik

    10/04/2017, 5:10 PM
    @nilan - thank you. 👍 low priority tho hehe
  • r

    rvespula

    10/04/2017, 5:14 PM
    I have this error when i try import files in production schemas 😞
    Copy code
    Unknown argument 'oldId' on field 'createSection' of type 'Mutation
    n
    • 2
    • 2
  • h

    hueezer

    10/04/2017, 5:48 PM
    Hi ya’ll. I’ve seen in the docs and in this channel references to a self hosted version of Graphcool. Is there a link or a page I can find out more?
    n
    • 2
    • 1
  • j

    Josef Henryson

    10/04/2017, 6:38 PM
    I’m not an expert in data models and I’m a newbie to GraphQL. I’m trying to have 2 fields in a Company type of the User type (contactPerson + employees), but I don’t seem to be able to do this since a relation is required on each, and the target User field can only have 1 relation… should I add another field to the User to solve this, or is it better to have a User field ‘isContactPerson’ and filter Company employees for this field? Or is there an even better solution? Please let me know if I need to explain myself better. Thanks in advance for any help.
  • f

    frankspin

    10/04/2017, 7:38 PM
    Hi Guys. Following the signup example from graph.cool. Having an issue with confirm email.
    a
    • 2
    • 6
  • a

    Anthony Baker

    10/04/2017, 8:12 PM
    Hey folks, have a GraphQL Playground question: It doesn't appear to present enums in the same way that GraphiQL does. Is there any recommendations how to best handle this?
  • a

    Anthony Baker

    10/04/2017, 8:12 PM
    Here's a screenshot comparing:
  • a

    albinekb

    10/04/2017, 8:13 PM
    @Anthony Baker you mean that the comment is in the wrong order? 😄
  • a

    albinekb

    10/04/2017, 8:13 PM
    should probably open an issue over at the repo
    👍🏻 1
  • l

    lastmjs

    10/04/2017, 8:14 PM
    Are there any plans to add more granular error messages when a query fails its permission query?
    a
    • 2
    • 5
  • a

    agartha

    10/04/2017, 8:14 PM
    @Anthony Baker Could you create an issue here: https://github.com/graphcool/graphql-playground/issues for the documentation of Enums?
  • a

    Anthony Baker

    10/04/2017, 8:15 PM
    @agartha Sure. Is this expected behavior right now? Or, perhaps, there's a way we're coding enums that don't play nice.
    a
    a
    • 3
    • 4
  • a

    Anthony Baker

    10/04/2017, 8:16 PM
    @albinekb The comment comes before the item, but you also get
    #
    characters in the description.
  • a

    albinekb

    10/04/2017, 8:28 PM
    https://github.com/graphcool/graphql-playground/pull/170 😄
  • a

    albinekb

    10/04/2017, 8:28 PM
    #hacktoberfest
  • l

    lastmjs

    10/04/2017, 8:57 PM
    All the functionality that you can implement with resolvers can also be implemented through the Proxy Layer. It is up to you where you want to put certain functionality. The Proxy Layer should generally be considered for more advanced use cases though - if your use case is rather simple and you only have a few resolvers to be implemented, the Proxy Layer might be an overkill.
  • l

    lastmjs

    10/04/2017, 8:57 PM
    What is this proxy layer?
  • l

    lastmjs

    10/04/2017, 8:58 PM
    Will it allow me to receive raw post requests?
  • l

    lastmjs

    10/04/2017, 8:58 PM
    In a graph.cool function?
    a
    • 2
    • 4
  • p

    Phil

    10/04/2017, 9:49 PM
    Hey guys! I love what you guys have done with chromeless! I'm trying to implement chromeless for a Vue.js application i'm developing, but I'm a bit stuck on how to implement a runner to import multiple tests (separate test files for each component/feature). Any pointers, or am I just being daft? 🙂
    • 1
    • 1
  • l

    lastmjs

    10/04/2017, 10:35 PM
    How do I name my project with the new CLI?
    a
    • 2
    • 21
  • p

    Pkmmte

    10/05/2017, 1:59 AM
    Is there a way to change the value for
    createdAt
    and
    updatedAt
    fields? I'm trying to migrate an existing Postgre database and I'd like to keep these values without creating fields such as
    actualCreatedAt
    ...
    a
    • 2
    • 2
  • s

    srhise

    10/05/2017, 2:49 AM
    resolver functions look great. Is there a react or vue example up yet that uses them?
1...360361362...637Latest