Namespace: Helpers

Helpers

Namespace containing different types of helper functions
Source:

Methods

(static) createTester(testerName)

Creates a Tester via GraphQL endpoint Refer to this by Helpers.".createTester"
Parameters:
Name Type Description
testerName string Tester's name
Source:

(static) graphqlQuery(query) → {Promise}

Runs a query to the GraphQL Endpoint Refer to this by Helpers.".graphqlQuery"
Parameters:
Name Type Description
query string Query as a string
Source:
Returns:
Returns Promise containing query reply
Type
Promise

(static) upsert(model, values, condition) → {Promise}

Update or Insert into database based on conditions
Parameters:
Name Type Description
model Model Model of the insert/update item
values Object Attributes for the insert/update item
condition Object Sequelize where conditions for when to insert/update item
Source:
Returns:
Promise containing the updated item(s)
Type
Promise