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

    tim

    10/27/2018, 2:11 AM
    whats the best way to allow for different types for a field?
    Copy code
    type Concert @model {
      id: ID! @isUnique
      performer: Artist # I would also like to allow for Band here
    }
  • t

    tim

    10/27/2018, 2:16 AM
    is that possible? or is there a way to have a base model and extend?
  • c

    callan

    10/27/2018, 2:37 AM
    hey guys
  • c

    callan

    10/27/2018, 2:37 AM
    i'm using graphqlgen for the first time today
  • c

    callan

    10/27/2018, 2:37 AM
    and my generated types have wacky imports
  • c

    callan

    10/27/2018, 2:37 AM
    Copy code
    import { Context } from '..\createServer'
    import { Item } from './prisma-client\index'
    import { User } from './prisma-client\index'
  • c

    callan

    10/27/2018, 2:37 AM
    backslashes
  • c

    callan

    10/27/2018, 2:38 AM
    anyone know how to fix this?
  • c

    callan

    10/27/2018, 2:42 AM
    i can just go in and change it myself and it works fine from there
  • c

    callan

    10/27/2018, 2:42 AM
    but yeah 😛
  • c

    callan

    10/27/2018, 2:48 AM
    also `graphql-yoga`'s
    IResolvers
    type isn't compatible with the generated
    Resolvers
    interface made by
    graphqlgen
    d
    • 2
    • 2
  • c

    callan

    10/27/2018, 2:48 AM
    has anybody else experienced this and know what to do?
  • i

    Ian Huang

    10/27/2018, 4:59 AM
    hello, i've encountered an error when i do 'docker-compose' up: "Bind for 0.0.0.0:4466 failed: port is already allocated" does anyone know how to fix it?
    j
    • 2
    • 1
  • j

    jchi

    10/27/2018, 9:12 AM
    Anyone having any issues where nested mutation's connnect are losing existing node associations?
    n
    • 2
    • 2
  • r

    rein

    10/27/2018, 9:32 AM
    hey guys, quick question, regarding search in a Prisma/Yoga powered app, is there a way to use full text search yet when using a postgres db? And is there any update on a Elastic Search implementation?
    d
    n
    s
    • 4
    • 6
  • t

    tfiwm

    10/27/2018, 10:08 AM
    -.pl
    n
    • 2
    • 34
  • t

    tfiwm

    10/27/2018, 10:09 AM
    somebody has any idea what the problem is? i already deployed prisma new and removed the databases before that
  • a

    affanshahid

    10/27/2018, 11:17 AM
    Hey guys, I'm trying to use
    graphqlgen
    which uses namespaces that are not compatible with babel-preset-typescript, any idea what I should do?
  • c

    callan

    10/27/2018, 11:22 AM
    i'm kind of a typescript newbie so i'm not confident enough to create a git issue
  • c

    callan

    10/27/2018, 11:22 AM
    but i've isolated my problem before down to the
    args
    parameter in generated resolver types
  • c

    callan

    10/27/2018, 11:23 AM
    also `graphql-yoga`'s
    IResolvers
    type isn't compatible with the generated
    Resolvers
    interface made by
    graphqlgen
  • c

    callan

    10/27/2018, 11:23 AM
    ^ That's what I'm referring to
  • c

    callan

    10/27/2018, 11:23 AM
  • c

    callan

    10/27/2018, 11:24 AM
    This is the
    graphql-yoga
    field resolver type
  • c

    callan

    10/27/2018, 11:24 AM
    by default the args have the signature
    { [argName: string]: any }
  • c

    callan

    10/27/2018, 11:24 AM
    and this type is generated by
    graphqlgen
  • c

    callan

    10/27/2018, 11:24 AM
  • c

    callan

    10/27/2018, 11:25 AM
    this type here is not assignable to GraphQLFieldResolver i think
  • c

    callan

    10/27/2018, 11:25 AM
    although I can't understand why
  • c

    callan

    10/27/2018, 11:25 AM
    because i thought that this interface matches that index signature defined in `GraphQLFieldResolver`'s
    args
    ?
1...142143144...637Latest