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

    taikn

    09/21/2017, 5:44 PM
    Any to support 'sendinblue' for sending out emails?
    a
    • 2
    • 4
  • g

    Gregory Forel

    09/21/2017, 7:07 PM
    @devan Hi, I'm at this part of the tutorial https://www.howtographql.com/react-apollo/6-more-mutations-and-updating-the-store/, and I also receive the message 'All models must specify the
    id
    field: `id: ID! @isUnique`' when doing
    graphcool push
    . Is this related? Note that I checked my code a few times, everything was working before this.
    d
    n
    • 3
    • 8
  • z

    zaksingh

    09/21/2017, 7:21 PM
    Does the subscription system invalidate the
    update
    system of apollo?
  • z

    zaksingh

    09/21/2017, 7:24 PM
    And if so, should I migrate everything I'm currently using the apollo
    update
    for to utilize subscriptions instead? It seems like a much cleaner, easier system
  • c

    cartogram

    09/22/2017, 12:01 AM
    https://www.reindex.io/blog/discontinuing-backend-as-a-service/ maybe a guide for moving from reindex to graph.cool would be helpful
    a
    • 2
    • 1
  • c

    chandlervdw

    09/22/2017, 2:40 AM
    The WorldChat example (https://github.com/graphcool-examples/react-graphql/blob/master/subscriptions-with-apollo-worldchat) exports
    addGraphQLSubscriptions
    from
    subscriptions-transport-ws
    , which will soon be deprecated: https://github.com/apollographql/subscriptions-transport-ws/issues/169. I see in the comments that https://github.com/scf4/add-graphql-subscriptions is an option, i.e.
    Copy code
    import { addGraphQLSubscriptions } from 'add-graphql-subscriptions';
    but now it’s throwing the following error:
    wsClient.subscribe is not a function
    .
  • c

    chandlervdw

    09/22/2017, 2:45 AM
    Is there currently a way to implement subscriptions or not?
    m
    • 2
    • 2
  • m

    matty

    09/22/2017, 6:29 AM
    Is it possible to disable the Algolia integration?
  • m

    matty

    09/22/2017, 6:29 AM
    never mind - https://github.com/graphcool/console/issues/1295
  • c

    congy

    09/22/2017, 7:48 AM
    Hello, sorry if this has been already answered. But I'm wondering, what is the best possible way to get analytic reports out of my data stored in graph.cool ? I mean something like elasticsearch (but doesn't heave to be as feature-rich as elasticsearch).
  • p

    Pieter

    09/22/2017, 10:28 AM
    I see there's a new type of server function called schema extension. Where can I read up on that?
    d
    n
    • 3
    • 3
  • c

    chandlervdw

    09/22/2017, 2:35 PM
    I figured out how to make a subscription but now I’m getting the following error:
    Copy code
    The provided query doesn't include any known model name. Please check for the latest subscriptions API.
    Relevant code:
    Copy code
    componentDidMount() {
        this.createDonationSubscription = this.props.allDonationsQuery.subscribeToMore(
          {
            document: gql`
              subscription {
                Donation {
                  node {
                    id
                    amount
                  }
                }
              }
            `,
            // updateQuery: (previousState, { subscriptionData }) => {
            //   const newDonation = subscriptionData.data.Donation.node;
            //   const donations = previousState.donations.concat([newDonation]);
            //   return {
            //     allDonations: donations
            //   };
            // },
            onError: err => console.error(err) // eslint-disable-line
          }
        );
      }
    but when I try to run the following query in the graph.cool playground, it works fine (upon adding a Donation in another window):
    Copy code
    subscription {
      Donation {
        node {
          id
          amount
        }
      }
    }
    n
    • 2
    • 3
  • c

    chandlervdw

    09/22/2017, 2:35 PM
    To note: I recently changed the Schema from
    Donations
    to
    Donation
  • c

    chandlervdw

    09/22/2017, 2:36 PM
    I did not get this error before I made that change.
  • d

    devan

    09/22/2017, 3:56 PM
    👋 @allan and @rekul!
  • a

    allan

    09/22/2017, 3:56 PM
    Hey 🙂
  • l

    lewisblackwood

    09/22/2017, 3:59 PM
    Apologies if I've missed this somewhere, I've searched through Slack and the forum but couldn't find any reference. Do new types created via the console no longer have a
    createdAt
    and
    updatedAt
    value by default? Is there a way to include those fields?
    d
    i
    • 3
    • 2
  • j

    johninvancouver

    09/22/2017, 4:07 PM
    Hi, just joined. I want to do a Modern Relay app. Question is: when set up a new graphcool endpoint it gives you 2 urls. One is for "Relay" - is that Modern Relay or Classic Relay? If it is Classic, any way to get a Modern Relay endpoint?? Thanks !
    n
    • 2
    • 15
  • l

    lewisblackwood

    09/22/2017, 4:12 PM
    @devan thanks for the comment. This is what my most recently created type looks like on the console. My previous types have always had
    createdAt
    and
    updatedAt
    as system fields...
    d
    n
    • 3
    • 4
  • s

    Sheel Patel

    09/22/2017, 6:04 PM
    Is there anyone here that can answer some sales questions?
    n
    • 2
    • 2
  • l

    lifeiscontent

    09/22/2017, 6:08 PM
    Anyone here know where I can read some docs on graphcool-cli beta? I can't seem to run graphcool deploy
    n
    • 2
    • 15
  • l

    lifeiscontent

    09/22/2017, 7:20 PM
    anyone know how to use the graphcool beta with this tutorial? I want the same thing, but I guess now there's a bit more intricacies involved. https://www.graph.cool/docs/faq/graphcool-location-type-eicha8ooph/
    n
    • 2
    • 9
  • l

    lifeiscontent

    09/22/2017, 7:44 PM
    when I run deploy after adding a module I get this error:
    Copy code
    $ graphcool deploy
     ▸    Please provide either a default environment, a project or an environment you want to deploy to.
    n
    j
    • 3
    • 4
  • l

    lifeiscontent

    09/22/2017, 7:44 PM
    what do I need to do here?
  • j

    johninvancouver

    09/22/2017, 8:19 PM
    anyone know if after you have done the new Relay Modern tutorial using the beta CLI, if the Advanced tutorials still work?
  • m

    Mutinix

    09/22/2017, 9:25 PM
    Can someone have a look at my code and tell me if my GraphQL schema is implemented correctly:
  • m

    Mutinix

    09/22/2017, 9:26 PM
    Copy code
    type MutateStoreProduct {
        create(storeId: Long!, entry: StoreProductInput!): StoreProductEntry!
    }
    
    type StoreProductEntry {
        id: Long!
        name: String!
        store: StoreEntry!
        catalogItem: CatalogEntry!
        price: Long!
    }
    
    input StoreProductInput {
        id: Long
        name: String!
        catalogItemId: Long!
        price: Long!
     }
  • m

    Mutinix

    09/22/2017, 9:27 PM
    The idea is that I have a centralized catalog of products. Each store has its own products that are linked to the centralized catalog.
  • m

    Mutinix

    09/22/2017, 9:28 PM
    I have a few other types and inputs, but they don't involve nesting like this, so I just want to make sure I'm doing this correctly. It's my first time going about this.
  • a

    andreas.hard

    09/22/2017, 10:41 PM
    @Mutinix I think you should use the
    GraphQLID
    type for id’s at least:
    Copy code
    id: ID! @isUnique
1...347348349...637Latest