Added logged filter to characters query: character appears in logs.
the build was successful

This commit is contained in:
2018-07-18 00:13:19 +02:00
parent 388d5378e7
commit 0ec923d686
3 changed files with 32 additions and 2 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ type CharactersArgs struct {
Names *[]string
Author *string
Search *string
Logged *bool
}
}
@@ -39,7 +40,7 @@ func (r *QueryResolver) Characters(ctx context.Context, args *CharactersArgs) ([
names = *filter.Names
}
characters, err = character.ListFilter(ids, nicks, names, filter.Author, filter.Search)
characters, err = character.ListFilter(ids, nicks, names, filter.Author, filter.Search, filter.Logged)
if err != nil {
return nil, err
}
+3
View File
@@ -38,6 +38,9 @@ input CharactersFilter {
# Filter by text search matching against the character's description
search: String
# Filter by whether they've been part of a log.
logged: Boolean
}
# Input for adding characters