Getting a specific record

For each model, the lumber-graphql plugin generates a get_<modelName> query that looks like:

id: ID!
): products

To retrieve a specific product, we can type the following query in the GraphQL playground:

query {
get_products(id: "1") {

In the example above, the model name is products in plural. We must use this exact model name even if we only retrieve one record.