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

    Keith Gunn

    03/20/2019, 3:43 PM
    👋
    👋 5
  • e

    Ecker

    03/20/2019, 8:24 PM
    Is
    graphql-nexus
    and
    nexus-prisma
    "production" ready? Anybody here using it in production?
    m
    • 2
    • 2
  • c

    chan1di

    03/20/2019, 9:19 PM
    does anyone know how entendType works in prisma-nexus?
  • f

    faure

    03/21/2019, 12:03 AM
    Is it possible to have dynamic names for instances of entity relationship?
  • f

    faure

    03/21/2019, 12:04 AM
    For example:
    Copy code
    type Company {
      name: String
    }
    
    type Employee {
      company: Company
    }
  • f

    faure

    03/21/2019, 12:05 AM
    Can I make it so that "Employee.company" relation has a name I can update? I want that name to represent the employee title.
  • f

    faure

    03/21/2019, 12:24 AM
    How can I run prisma@beta without entirely removing the one I'm currently using?I want to try out prsima admin
    h
    • 2
    • 3
  • j

    Jeuffre Alexander Brena Pulido

    03/21/2019, 12:38 AM
    Hi guys, I'm trying to use grapql-request to make request server side, how can I pass the filtering option in the request method? I'm trying to do something like this but with no luck
    Copy code
    const query = `
            query getUser($filters: UserFilter) {
                allUsers(
                    filter: $filters
                ){
                    id
                    email
                }
            }
        `
    
        const variables = {
            OR: [
                { email: userEmail },
                { id: userId }
            ]
        }
    
        graphcool.api('simple/v1').request<{ User }>(query, variables)
    h
    • 2
    • 1
  • g

    goonit

    03/21/2019, 1:12 AM
    is anybody else getting strange errors when running
    prisma generate
    ?
  • g

    goonit

    03/21/2019, 1:12 AM
    i just upgraded to cli v1.29 and seem to be getting errors on my prisma.yml file
  • g

    goonit

    03/21/2019, 1:12 AM
    Copy code
    endpoint: <http://localhost:4466>
    datamodel: datamodel.prisma
    generate:
      - generator: javascript-client
        output: ./generated/prisma-client/
      - generator: graphql-schema
        output: ./generated/prisma-client/
  • g

    goonit

    03/21/2019, 1:13 AM
    n
    • 2
    • 4
  • t

    Taylor

    03/21/2019, 2:20 AM
    Is there a way to encrypt a database with Prisma?
  • b

    Biel Simon

    03/21/2019, 4:51 AM
    Prisma is failing to export / reset / import into itself
    d
    r
    • 3
    • 56
  • b

    Biel Simon

    03/21/2019, 4:52 AM
    Throwing a bunch of ... violates foreign key constraint ... is not present in table [Table]
  • b

    Biel Simon

    03/21/2019, 4:53 AM
    It looks like it is not exporting all of the data, because the export process is very fast and the resulting file very small
  • b

    Biel Simon

    03/21/2019, 4:54 AM
    So basically I am unable to export my database and do any backups
  • b

    Biel Simon

    03/21/2019, 4:54 AM
    Any help?
  • b

    Biel Simon

    03/21/2019, 4:58 AM
    I'm on 1.29
  • b

    Biel Simon

    03/21/2019, 5:01 AM
    It could also be related to prisma not importing the data in the correct odrer? And maybe some foreign key constraints have to be removed and re-added back when data is in place?
    h
    • 2
    • 8
  • h

    henrique

    03/21/2019, 10:33 AM
    anyone here using prisma on heroku?
    w
    m
    • 3
    • 11
  • h

    henrique

    03/21/2019, 10:34 AM
    I've been trying to deploy the project app instead the database
  • a

    antonbramsen

    03/21/2019, 11:40 AM
    Nexus-Prisma question: I have a type
    Address
    in my data model with fields
    streetName
    and
    houseNumber
    I want to only expose streetName when a non-authenticated user tries to query a resolver that returns my the Address type and all fields when the user is authenticated. How would I do that using nexus-prisma?
    k
    • 2
    • 6
  • g

    Guilherme

    03/21/2019, 2:22 PM
    Is there any good documentation on how to use filtering on Prisma? I’m trying to use the logical OR in the where filtering but I can’t manage to work. It seems the logical OR is not in my WhereInput type.
    Copy code
    "Argument 'where' expected type 'RoomWhereInput' but got: {OR: [{city_contains: \"Paris\"}, {state_contains: \"Paris\"}]}. Reason: 'OR' Field 'OR' is not defined in the input type 'RoomWhereInput'
    k
    h
    • 3
    • 7
  • g

    Gheorghe Avram

    03/21/2019, 4:11 PM
    i can't use and deploy graphcool initial project to local i did
    graphcool init graphtest
    i then did
    graphcool local up
    and
    cd graphtest
    and until here everything worked great i then did
    graphcool deploy
    and selected local after this it showed local and it never stopped or showed any aditional information, i tried to use the docs to orient me, maybe i did something wrong, but nothing was helpful if i do
    docker ps
    everything showed up and it seemed to be running
  • g

    Gheorghe Avram

    03/21/2019, 4:13 PM
    i tried to deploy to the shared clusters that are given in the deploy menu, but it hangs like that in the same way, shows the cluster name and nothing more, forever
  • g

    Gheorghe Avram

    03/21/2019, 4:14 PM
    any help would be great
  • r

    Robert Nicely

    03/21/2019, 5:00 PM
    does anyone have a method they would like to share, to attach a generated id to a onClick event, that also populates to multiple input fields to confirm for the user, for a redux backend. Ive tried using their styled components, but can only link two input fields using their components via the record id , that drops and action to a direct child component, with the source, record props for either a direct link, or one reference field. Need to populate 5 reference inputs, with one direct link thats handled by the onclick event. Tried a class component as well, but can't call a lot of extra stuff in the area, basically can use prop types to keep it in line with the other components in the area, if possible? I thought about just creating a gql query and attaching the post to the event, but open to anything someone might of used?
  • r

    Robert Nicely

    03/21/2019, 5:05 PM
    prisma/graphql, with rest migration, can use react-admin components as well, since it's their backstore,
  • k

    Kianoosh

    03/21/2019, 7:10 PM
    hey guys i'm kinda newbie with MongoDB and i can't really understand that is it reasonable to use MongoDB when you supposed to use lots of references (link in prisma) ?
    h
    • 2
    • 2
1...239240241...637Latest