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

    Dukuo

    11/20/2017, 7:28 PM
    I would recommend to monitor your local git repository, commit your schema changes and rollback then deploy when necessary
  • d

    Dukuo

    11/20/2017, 7:29 PM
    just be aware that you might brake some stuff with records already stored in your db, so
    @migrationValue
    is your friend here
  • k

    kaihuang724

    11/20/2017, 7:31 PM
    Thanks @Dukuo I’ll do that for now
  • d

    Dukuo

    11/20/2017, 7:32 PM
    no problem @kaihuang724, also please check this resource https://docs-next.graph.cool/docs/reference/database/migrations-paesahku9t explaining some core concepts that you can apply right now.
  • y

    yuri

    11/20/2017, 7:39 PM
    Has anyone already had use case of combining graphcool + rest api wrapper + subscriptions?
  • d

    Dukuo

    11/20/2017, 7:41 PM
    why would you use a REST api on top on GraphQL?
  • d

    Dukuo

    11/20/2017, 7:41 PM
    that sorta defeats all graphql goodness 😅
  • y

    yuri

    11/20/2017, 7:47 PM
    yes, I know :) but just curiosity + some functionality which is already made and no one is going to rewrite it, need to be done on graphql side too, wrapping is quite normal behavior
  • d

    Dukuo

    11/20/2017, 7:52 PM
    Yeah, I get it. I don't have any examples of it though 😕
  • b

    bwoodlt

    11/20/2017, 8:13 PM
    Can anyone please recommend a stable
    apollo-client
    to be used in
    front-end
    react-native
    . We’ve spent hours debugging to no avail. Having
    wsClient.subscribe is not a function
    . Any help is appreciated
    a
    • 2
    • 1
  • b

    bwoodlt

    11/20/2017, 8:24 PM
    Yeah have actually fixed issue. You were right. Now im not getting messages when I subscribed.
  • b

    bwoodlt

    11/20/2017, 8:24 PM
    I’m using
    graphiql
    to test in
    development
    which works fine and using
    <ws://domain.com/subscriptions>
    in production which doesnt work.
  • a

    agartha

    11/20/2017, 8:35 PM
    Any chance it might be wss instead of ws in production?
  • b

    bwoodlt

    11/20/2017, 9:03 PM
    Tried both @agartha. Its a little confusing 😞 I’m getting some
    socker in debug mode
    warning in my iOS simulator though so maybe its trying to establish connections
  • s

    srhise

    11/20/2017, 10:13 PM
    Is the ‘subscription’ concept specific to Apollo or GraphQL? I am having a hard time finding resources specifically related to writing actual GQL… I get the react / vue stuff but when I go to actually write a query I am lost
    i
    • 2
    • 3
  • k

    kaihuang724

    11/20/2017, 10:16 PM
    Anyone come across this error when using
    react-apollo
    and graphQL? Just started getting this error today after upgrading my packages
  • k

    kaihuang724

    11/20/2017, 10:16 PM
    [Error: Network error: nextLink.execute is not a function. (In 'nextLink.execute(op)', 'nextLink.execute' is undefined)]
  • s

    srhise

    11/20/2017, 10:52 PM
    when you search ‘subscription’ on http://graphql.org/ you get 0 results 😡
  • m

    MoonTahoe

    11/21/2017, 12:10 AM
    Given the following Schema, is it possible to create a relationship between multiple types? For instance, can I create a relationship under the Location type for UsersAtLocation?
    Question_about_Relationships_between_multiple_types.txt
  • u

    user

    11/21/2017, 12:11 AM
    @MoonTahoe commented on @MoonTahoe’s file https://prisma.slack.com/files/U8029UGEB/F839SED2P/Question_about_Relationships_between_multiple_types.txt: I know I can retrieve all of the users at a specific location via the Location days in a query… I want to know if it is possible to create this relationship without having to look up every single day in the model.
    Question_about_Relationships_between_multiple_types.txt
  • r

    rafaelcorreiapoli

    11/21/2017, 12:17 AM
    Hello, when trying to use JSON scalar type, I get this:
    Copy code
    ✖ The field `config` has the type `JSON` but there's no type or enum declaration with that name.
        ✖ The relation field `config` must specify a `@relation` directive: `@relation(name: "MyRelation")`
  • r

    rafaelcorreiapoli

    11/21/2017, 12:18 AM
    My model is something like this:
    Copy code
    type Question @model {
      id: ID! @isUnique
      survey: Survey! @relation(name: "SurveyQuestions")
      title: String!
      type: QuestionType
      config: JSON
      answers: [Answer!] @relation(name: "QuestionAnswers")
    }
    `
  • u

    user

    11/21/2017, 12:26 AM
    @kaihuang724 commented on @MoonTahoe’s file https://prisma.slack.com/files/U8029UGEB/F839SED2P/Question_about_Relationships_between_multiple_types.txt: Yeah, you can definitely do that. You need an accompanying relationship under the user model for
    Location
    such as:
    Location: Location! @relation(name:"UsersAtLocation")
    Question_about_Relationships_between_multiple_types.txt
  • u

    user

    11/21/2017, 12:52 AM
    @MoonTahoe commented on @MoonTahoe’s file https://prisma.slack.com/files/U8029UGEB/F839SED2P/Question_about_Relationships_between_multiple_types.txt: Cool! Thanks… I am assuming that I also add a locations field to the User Type? Duh? It’s so simple I missed it. Thanks.
    Question_about_Relationships_between_multiple_types.txt
  • d

    Dukuo

    11/21/2017, 1:02 AM
    i'm just gonna leave this link over here and slowly retreat 👀 https://github.com/graphcool/framework/issues/1305
  • j

    John Smeeth

    11/21/2017, 3:08 AM
    hi all
  • j

    John Smeeth

    11/21/2017, 3:10 AM
    I'm following this tutorial to start with graphql and react https://www.howtographql.com/react-apollo/2-queries-loading-links/ but has a piece of code that i don't understand
    graphql(ALL_LINKS_QUERY, { name: 'allLinksQuery' }) (LinkList)
    Anyone can help me understand. Many thanks.
    d
    • 2
    • 6
  • a

    alexanbj

    11/21/2017, 6:20 AM
    Since $now isn’t available in permission queries yet… What is the best approach to allow access at a certain timestamp? https://docs-next.graph.cool/docs/reference/auth/authorization/permission-queries-iox3aqu0ee#custom-variables
    • 1
    • 1
  • r

    rohit

    11/21/2017, 7:03 AM
    Hi guys, could someone point me to any docs that explain how to configure a self-hosted app with an existing MySQL db? I've been looking everywhere but haven't been able to find anything that explains it.
    i
    • 2
    • 5
  • r

    rrader

    11/21/2017, 8:02 AM
    Hi, does Graphcool support persisted queries?
1...441442443...637Latest