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

    James

    04/15/2019, 7:30 AM
    if its enabled you should be able to see an executeRaw resolver listed in the docs of your server, like if you open playground
  • c

    CCBCodeMonkey

    04/15/2019, 7:31 AM
    I was able to connect to my DB to see the schema, I found a thread saying how to turn on rawAccess on heroku(prisma cloud)
  • c

    CCBCodeMonkey

    04/15/2019, 7:31 AM
    but I still don't see execute raw on my functions
  • t

    Taras Protchenko

    04/15/2019, 7:31 AM
    Hey! Anyone knows why generated prisma
    query
    with
    contain
    don't search strings like:
    Hype!
    , whitch contains
    !
    or another special characters? And it's not register insensitive (
    😄 1
    r
    • 2
    • 3
  • c

    CCBCodeMonkey

    04/15/2019, 7:32 AM
    I don't see it in playground
  • j

    James

    04/15/2019, 7:35 AM
    I have a related problem and I'm trying to figure this out too. I can access it from the playground, but not prisma-client
  • c

    CCBCodeMonkey

    04/15/2019, 7:35 AM
    is it only under mutation on playground
  • c

    CCBCodeMonkey

    04/15/2019, 7:36 AM
    I can't even see it at all on playground
  • c

    CCBCodeMonkey

    04/15/2019, 7:37 AM
    lol I just want to see how many times users have tagged a post with a similar tag
  • c

    CCBCodeMonkey

    04/15/2019, 7:37 AM
    seems so basic
  • j

    James

    04/15/2019, 7:37 AM
    yeah. I was expecting something like prisma.$raw() ,but instead I guess one must use prisma.$graphql() and pass it in that way, but yeah, if you can't see it in playground then something is up
  • c

    CCBCodeMonkey

    04/15/2019, 7:38 AM
    yea its also weird how its controlled
  • c

    CCBCodeMonkey

    04/15/2019, 7:38 AM
    I guess it comes from the schema it downloads?
  • j

    James

    04/15/2019, 7:38 AM
    yeah, should be
  • c

    CCBCodeMonkey

    04/15/2019, 7:39 AM
    for you, if you do this
    Copy code
    mutation { 
       exec
    }
  • c

    CCBCodeMonkey

    04/15/2019, 7:39 AM
    it will autocomplete executeRaw?
  • j

    James

    04/15/2019, 7:39 AM
    yes
  • j

    James

    04/15/2019, 7:40 AM
    You are definitely in the playground for your server, not the outward-facing api?
  • c

    CCBCodeMonkey

    04/15/2019, 7:40 AM
    yes
  • c

    CCBCodeMonkey

    04/15/2019, 7:41 AM
    Copy code
    "errors": [
        {
          "message": "Cannot query field 'executeRaw' on type 'Mutation'. (line 2, column 3):\n  executeRaw(query: \"SELECT * FROMdefault$default.\\\"User\\\"\")\n  ^",
          "locations": [
            {
  • c

    CCBCodeMonkey

    04/15/2019, 7:53 AM
    I posted on the forums, hopefully someone on the prisma team can help
  • c

    CCBCodeMonkey

    04/15/2019, 7:53 AM
    https://www.prisma.io/forum/t/no-way-to-get-number-of-objects-that-share-the-same-string-as-a-property/6694
    j
    • 2
    • 4
  • p

    Petr Homoky

    04/15/2019, 11:48 AM
    Hello, how do you aggregate data for charts from prisma? Do you use direct MySQL queries or did you somehow do aggregation directly with prisma client?
  • f

    friebetill

    04/15/2019, 12:30 PM
    Is it possible to use nested queries with TypeScript and prisma-client-lib? Previously with prisma-binding, it was possible to pass the info variable to the binding, but the prisma-client-lib lacks this capability. This blog https://medium.com/@lukehamilton/nested-relations-in-prisma-971e060a16ab helps me so far, I only have to extract the fragment from the info parameter. Are there already solutions?
    • 1
    • 2
  • j

    jdoyle112

    04/15/2019, 2:43 PM
    Having a weird issue. I have a mutation that works in development running locally but returns a 400 error against production server. The code is the same. I’m kinda stumped, does anyone have an idea of what could be happening?
    h
    • 2
    • 1
  • c

    CCBCodeMonkey

    04/15/2019, 4:13 PM
    Hey I'm blocked on a project because I either need to do a group by on a field, either through prisma or with a raw query through prisma but there is like no docs on either...
  • c

    CCBCodeMonkey

    04/15/2019, 4:13 PM
    I can't figure out how to get execute raw to work through a server created with prisma cloud and heroku
  • c

    CCBCodeMonkey

    04/15/2019, 4:17 PM
    I added rawAccess:true to the heroku DB config variables but nothing happened even restarted the node
  • c

    CCBCodeMonkey

    04/15/2019, 7:33 PM
    Bumping, anyone know how to set up rawsql access on heroku with prisma cloud
  • c

    CCBCodeMonkey

    04/15/2019, 7:48 PM
    this no group by is killing me
1...253254255...637Latest