Anyone else experiencing issues with querying the ...
# prisma-whats-new
n
Anyone else experiencing issues with querying the generated schema? Getting the
cannot query field "users" on type "Query".
error. User type:
Copy code
type User {
  id: ID! @unique
  name: String
  stripeCustomerToken: String @unique
  apiKey: String @unique
  publicToken: String @unique
  subscription: Subscription
  access: [String!]
  createdAt: DateTime!
  updatedAt: DateTime!
  briefs: [Brief!]!
  org: Org!
  readNotifications: [Notification!]!
  email: String! @unique
  password: String
  persona: String
}
Generated Query type `src/generated/graphcool.graphql`:
Copy code
type Query {
...
  users(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [User]!
...
}
Running beta4.1.1
j
Can you share your query?
n
Simple query
Copy code
{
  users {
    email
  }
}
j
Hmm, have you tried explicitly doing
Copy code
query {
  users { email }
}
n
all of my self written resolvers (queries and mutations) are working great
@Jonathan Romano same issue, just tried
local is running and running this on localhost:4000
j
You also sure you're sending the request to the right api/endpoint?
And if you're running a local cluster, that is running?
Ah, you said that
n
yeah, it's weird. First issue I've had with the RC
j
Yeah so are you sure you're sending the query to the db, and not your API?
n
Dude... I've been coding for 5 hours on a plane from Seattle to Boston. Simple mistake. TY for fixing me.
j
np XD