Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.1 KB
Raw Blame
# A database table's rows as the browser SQL engine reads them: each cell's
# value by property definition, plus the row fields the local filter index
# projects (owner, table, timestamps, notification state). The catalog
# already holds every column's name and type, so properties carry no
# definition metadata.
query DatabaseRows($input: SoupInput!) {
	user {
		id
		soup(input: $input) {
			items {
				...DatabaseRowFields
			}
			nextCursor
		}
	}
}

fragment DatabaseRowFields on GraphqlSoupEntity {
	__typename
	cacheProjection @cacheOnly
	id
	notifications { ...SoupNotificationStateFields }
	... on GraphqlSoupDatabaseRow {
		tableId
		position
		ownerId
		createdAt
		updatedAt
		properties {
			id
			propertyDefinitionId
			value { ...SoupPropertyValueFields }
		}
	}
}

# Global view membership and ordering are evaluated before this page is selected.
query DatabaseViewRows($databaseId: ID!, $input: DatabaseViewRowsInput!) {
	user {
		id
		databaseViewRows(databaseId: $databaseId, input: $input) {
			items { ...DatabaseRowFields }
			nextCursor
			version
		}
	}
}