Queries class Null safety

Class containg various utilities for the database connection.

Constructors

Queries()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

createStatement() String
Returns the graphQL mutation to create a Statement.
deleteFact(String factId) String
Returns the graphQL mutation to delete a Fact by Fact.objectId.
getCurrentUser() String
Returns the graphQL query to check the current user.
getnNewestStatements(int n) String
Returns the graphQL query to get to newest n statements.
getStatement(String? statementID) String
Returns the graphQL query to get a Statement by Statement.objectId.
login(String username, String password) String
Returns the graphQL mutation to login.
searchStatements(String query) String
Returns the graphQL query to search for Statements.
updateStatement() String
Returns the graphQL mutation to update a Statement.