Graphql can discovery query in client side with NextJS + getStaticProps + Environment Variables token?

Viewed 12

REST API show all info about Object in a Network Tab (Inspect Browser)

That why I change to GraphQL

I wanna know, GraphQL API method can get all info too in a "hide" query I do not pass?

Eg.:

REST API:
GET users

Response: id, name, email...+

GraphQL:

query {
 users {
  data {
   id 
  }
 }
}

Response: id.

Exist some way to bypass and obtain more details like: name, email... with GraphQL ? If yes, how I can hide this?

Right now I use NextJS + getStaticProps with Incremental Static Regeneration(ISR) and get api with a Authorization key in an Environment Variables + GraphQL, and I'm happy with that, but I'm doubt

I wish use Private Field , but I can't in a moment, that why I change GraphQL to (I think) fix that..

0 Answers
Related