Free Online GraphQL Playground
Graphql Schema
type User {
firstName: String!
lastName: String!
countryCode: String!
country: Country
companyId: Int!
company: Company
}
type Company {
name: String!
countryCode: String!
country: Country
}
type Country {
iso2: String!
iso3: String!
name: String!
}
type Query {
users(
country: String
firstName: String
lastName: String
countryCode: String
limit: Int = 50
): [User]!
countries(
iso2: String
iso3: String
name: String
limit: Int = 50
): [Country]!
companies(
name: String
countryCode: String
limit: Int = 50
): [Company]!
}
Result JSON
Loading
FAQ
GraphQL is a query language and runtime for building APIs. It allows clients to define the structure of the data they need and the server will return only the requested data.
GraphQL allows clients to request only the data they need, while REST typically exposes a fixed set of endpoints that return a fixed set of data. This means that with GraphQL, the client has more flexibility and control over the data they receive.
GraphQL can be used to build mobile applications and can help reduce the amount of data sent over the network. Additionally, it can handle real-time updates and offline support.