Keyword searching
To search via keyword, provide a value to the searchterm
, such as searchterm: "my amazing keyword search"
.
GraphQL requires you to specify which fields to return. In this example, we’ll request the title
, source
, sourceLink
, and summary
fields.
Our GraphQL Playground provides documentation on the fields, and will make suggestions and inform you of syntax errors as you write your queries. Because of this, it is often a useful place to develop queries prior to copying them into any scripts or applications you are writing.
{
search(searchterm: "orbital velocity") {
records {
title
source
sourceLink
summary
}
}
}
Run this query in the GraphQL playground.