Skip to content

Instantly share code, notes, and snippets.

View ericxjohnston's full-sized avatar

Eric Johnston ericxjohnston

  • Logicmonkey
View GitHub Profile
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@ericxjohnston
ericxjohnston / exampleUsage.ts
Created March 25, 2021 14:25 — forked from jasonkuhrt/exampleUsage.ts
Abstraction for defining result fields in Nexus
/**
* This does not show surrounding code like referenced types.
*/
resultMutationField('inviteUserToProject', {
input(t) {
t.nonNull.id('userHandle')
t.nonNull.id('projectId')
t.nonNull.field('role', {
type: 'ProjectRole',