Skip to content

Commit

Permalink
refactor(ts-client): modularize selection-set (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Apr 28, 2024
1 parent 5b13f30 commit dbffec8
Show file tree
Hide file tree
Showing 45 changed files with 483 additions and 412 deletions.
4 changes: 2 additions & 2 deletions src/entrypoints/alpha/client.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from '../../layers/4_client/client.js'
export { create as createSelect, select } from '../../layers/4_select/select.js'
export * from '../../layers/5_client/client.js'
export { create as createSelect, select } from '../../layers/5_select/select.js'
4 changes: 2 additions & 2 deletions src/entrypoints/alpha/schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from '../../layers/1_Schema/__.js'
export { ResultSet } from '../../layers/3_IO/ResultSet/__.js'
export { SelectionSet } from '../../layers/3_IO/SelectionSet/__.js'
export { SelectionSet } from '../../layers/3_SelectionSet/__.js'
export { ResultSet } from '../../layers/4_ResultSet/__.js'
1 change: 0 additions & 1 deletion src/layers/3_IO/ResultSet/__.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/layers/3_IO/SelectionSet/_.ts

This file was deleted.

329 changes: 0 additions & 329 deletions src/layers/3_IO/SelectionSet/toGraphQLDocumentString.ts

This file was deleted.

2 changes: 2 additions & 0 deletions src/layers/3_SelectionSet/_.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * as Print from './encode.js'
export * from './types.js'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { parse, print } from 'graphql'
import { describe, expect, test } from 'vitest'
import type { Index } from '../../../../tests/_/schema/generated/Index.js'
import { $Index as schemaIndex } from '../../../../tests/_/schema/generated/SchemaRuntime.js'
import type { Index } from '../../../tests/_/schema/generated/Index.js'
import { $Index as schemaIndex } from '../../../tests/_/schema/generated/SchemaRuntime.js'
import type { SelectionSet } from './__.js'
import type { Context } from './toGraphQLDocumentString.js'
import { rootTypeSelectionSet } from './toGraphQLDocumentString.js'
import type { Context } from './encode.js'
import { rootTypeSelectionSet } from './encode.js'

// eslint-disable-next-line
// @ts-ignore
Expand Down

0 comments on commit dbffec8

Please sign in to comment.