Having problems with connect permission queries
# prisma-whats-new
w
Having problems with connect permission queries
1
Copy code
query ($eventEvent_id: ID!, $user_id: ID!) {
  SomeEventExists(filter: {
    id: $eventEvent_id,
    owner:{
      id: $user_id
    }
  })
}
That's my permission query
I'm getting the following error:
Copy code
Error: GraphQL error: No CONNECT permissions
Copy code
Error: GraphQL error: Permission Query is invalid. Could not be executed. Error Message: Query does not pass validation. Violations:

Cannot query field 'SomeEventExists' on type 'Query'. (line 2, column 3):
  SomeEventExists(filter:{
  ^

Variable '$input_eventId' is not defined. (line 3, column 9):
    id: $input_eventId,
There's no
$input_eventId
anywhere in my permission query
If I change the permissions of the query I pasted above, and just let any authenticated user create the relation, then the problem goes away
It's like graphcool has cached an old version of the permission query or something
I've tried deleting the permission query and recreating it, but as long as I add a permission query the problem returns
n
@wallslide is the type
Event
defined on your project?
w
yes
n
can you PM me your project id?