this is pretty simple and doesn't seem to work on ...
# orm-help
i
this is pretty simple and doesn't seem to work on the latest betas. is this me? any pointers? I'm set up with mongo:
Copy code
mutation {
  createUser(
    data: {
      provider: { connect: { domain: "this.exists" } }
      email: "email"
    }
  ) {
    email
  }
}
It's an internal prisma error, and the mongo error is
Copy code
Unrecognized field in update operation: arrayFilters
FYI connecting though an
@id
fails as well.
h
can you please share your datamodel?
i
yeah it's gotta be about some other User connection. It's pretty complex atm, I'll be simplifying and will get back to this. thanks.
datamodel:
Copy code
type User {
  id: ID! @id
  email: String!
  provider: Provider! @relation(link: INLINE)
}

type Provider {
  id: ID! @id
  domain: String! @unique
}
operation:
Copy code
mutation {
  createUser(
    data: {
      provider: { create: { domain: "bla.bla" } }
      email: "email"
    }
  ) {
    email
  }
}
result:
Whoops. Looks like an internal server error.
---
Unrecognized field in update operation: arrayFilters' on server mongo:27017
h
I will try to reproduce the error in a bit 🙂
❤️ 1
i
latest beta client + beta image + fresh mongo
mongo                           3.4                 91170ab1aa1a        3 weeks ago         374MB
also FYI both documents get created, but user has no link field
i'm sorry to ask, but i'm a bit pressed for time -- any idea how long that
bit
may be? 🙂
h
I am having a look now 🙂
i
uff 🙂 thx
h
it works fine here, are you using introspection?
oh I used stable version btw
prisma 1.26 and cli 1.26.6
i
does it work with mongo?
h
yes I am using mongo connector
i
oh my
ill try to downgrade
the image as well or just the client?
h
mongo is in stable releases from a long time
just do the docker image
here is the docker-compose file that I used
Copy code
version: '3'
services:
  prisma:
    image: prismagraphql/prisma:1.26
    restart: always
    ports:
    - "4466:4466"
    environment:
      PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: my-secret
        databases:
          default:
            connector: mongo
            uri: '<mongodb://prisma:prisma@mongo>'
  mongo:
    image: mongo:3.6
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: prisma
      MONGO_INITDB_ROOT_PASSWORD: prisma
    ports:
      - "27017:27017"
    volumes:
      - mongo:/var/lib/mongo
volumes:
  mongo:
also make sure you have cli, 1.26.6
beta can sometimes break, so for any prod use case please stay on stable
i
image on 1.26 , npm-prisma=1.26.6 -- still failing 😮
i'm runnning the cli from it's node_modules/.bin
h
that doesn't make any difference. DMing you now.
i
if anyone runs into this make sure you're running mongo-3.6 instead of 3.4 like me 🙂
🙂 1
d
Yes, 3.6 is the minimal version where prisma will work with mongo