Add more metadata to datasets
This commit is contained in:
parent
a4f130b36e
commit
23ecce06d5
4 changed files with 129 additions and 60 deletions
|
|
@ -4,7 +4,7 @@ use schema::schema;
|
|||
|
||||
// Variables
|
||||
|
||||
#[derive(cynic::QueryVariables, Clone)]
|
||||
#[derive(cynic::QueryVariables, Debug, Clone)]
|
||||
pub struct VideogameSearchVars<'a> {
|
||||
pub name: &'a str,
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@ pub struct VideogameSearchVars<'a> {
|
|||
#[derive(cynic::QueryFragment, Debug)]
|
||||
#[cynic(graphql_type = "Query", variables = "VideogameSearchVars")]
|
||||
pub struct VideogameSearch {
|
||||
#[arguments(query: { filter: { name: $name }, page: 1, perPage: 10 })]
|
||||
#[arguments(query: { filter: { name: $name }, page: 1, perPage: 8 })]
|
||||
videogames: Option<VideogameConnection>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue