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

    monkeybonkey

    01/17/2017, 3:21 AM
    I tried using the offset parameter but it errored: (first:100, offset:100)
  • m

    malone

    01/17/2017, 3:34 AM
    @monkeybonkey A
    Community
    will have many
    Users
    and a
    User
    can have many communities. At the moment, I’d like to restrict it to just the one based on email addresses though.
  • m

    monkeybonkey

    01/17/2017, 3:39 AM
    @malone seems like you can just create a Community model, no?
  • m

    malone

    01/17/2017, 3:47 AM
    Yes, but I’m wondering about the sign up process and how to restrict users based on their email
  • m

    malone

    01/17/2017, 3:47 AM
    Because in “xxxxxx@`example.com`” we just want the domain and need to do some logic with that
  • m

    malone

    01/17/2017, 3:48 AM
    The more I’m thinking about it I think I’m going to have to do some logic with webtask or lambda
  • c

    cartogram

    01/17/2017, 3:52 AM
    @malone look into auth0's rules feature
    👍 1
  • m

    monkeybonkey

    01/17/2017, 4:07 AM
    @malone yes you would either need to add the logic either clientside or like @cartogram said - to do it server side with either an auth0 rule or a graph.cool mutation callback I think
    👍 1
  • m

    monkeybonkey

    01/17/2017, 4:08 AM
    ok, figured out the paging question , the keyword was “skip” not “offset"
  • m

    malone

    01/17/2017, 4:09 AM
    Are you guys on the beta?
  • m

    monkeybonkey

    01/17/2017, 4:10 AM
    yeah we are
  • m

    monkeybonkey

    01/17/2017, 4:10 AM
    er.. I am I mean
  • m

    monkeybonkey

    01/17/2017, 4:11 AM
    anyone know how to do a mass update with the graphql syntax?
  • m

    malone

    01/17/2017, 4:15 AM
    Sweet. Do you know if we can set permissions for QueryMeta? As in: let people see the number of things in a list but not the content
  • m

    malone

    01/17/2017, 4:15 AM
    This list is a one-to-many relation not a “list” in the console
  • m

    malone

    01/17/2017, 4:16 AM
    @monkeybonkey You can just keep putting more and more mutations after one another
  • m

    malone

    01/17/2017, 4:18 AM
    A general query question: Say I have a
    Post
    with a
    parent
    and a
    children
    relation, where
    parent
    is a single
    Post
    or null, and
    children
    is a collection of `Post`s. Can I make a query for just posts that have no parent?
  • m

    malone

    01/17/2017, 4:28 AM
    ^ nevermind, see https://github.com/graphcool/feature-requests/issues/20#issuecomment-268099118
  • t

    timo

    01/17/2017, 5:57 AM
    Are there slightly bigger companies, that use Graphcool in production?
  • n

    nilan

    01/17/2017, 6:22 AM
    @monkeybonkey have you seen https://www.graph.cool/docs/reference/simple-api/pagination-ojie8dohju?
  • n

    nilan

    01/17/2017, 6:24 AM
    @martin I'll look into it. for now, can you sign up with a different email?
  • n

    nilan

    01/17/2017, 6:26 AM
    @malone looks like you have a few ideas how to make this happen now - eventually you will use custom constraints: https://github.com/graphcool/feature-requests/issues/23
  • s

    schickling

    01/17/2017, 10:27 AM
    Hey @timo! We'll soon put up a list of companies using Graphcool in production. In the meantime I'll reach out to you via PM
  • g

    gopidon

    01/17/2017, 12:16 PM
    Are the IDs unique across the models in a given project??
  • t

    tim2

    01/17/2017, 12:21 PM
    @gopidom Yes they are :)
  • g

    gopidon

    01/17/2017, 12:22 PM
    👍
  • n

    nilan

    01/17/2017, 12:22 PM
    we use cuids: https://github.com/graphcool/cuid-java
  • g

    gopidon

    01/17/2017, 12:22 PM
    Nice name... collision resistant 😜
  • x

    xeoneux

    01/17/2017, 12:34 PM
    Hey!
  • n

    nilan

    01/17/2017, 12:34 PM
    hey @xeoneux 👋
1...777879...637Latest