Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
Using npm:

```
npm install @yaacovCR/transform [email protected]
npm install @yaacovcr/transform [email protected]
```

Using yarn:

```
yarn add @yaacovCR/transform [email protected]
yarn add @yaacovcr/transform [email protected]
```

Using pnpm:

```
pnpm add @yaacovCR/transform [email protected]
pnpm add @yaacovcr/transform [email protected]
```

## Overview
Expand All @@ -41,7 +41,7 @@ Notes:
To compose results from multiple GraphQL services, provide a `subschemas` array to `transform()`:

```ts
import { transform } from '@yaacovCR/transform';
import { transform } from '@yaacovcr/transform';

const transformed = await transform({
schema,
Expand Down Expand Up @@ -69,7 +69,7 @@ const transformed = await transform({
To apply transformations to specific leaf types (scalars or enums), pass `leafTransformers` to `transform()`:

```ts
import { transform } from '@yaacovCR/transform';
import { transform } from '@yaacovcr/transform';

const transformed = await transform({
schema,
Expand Down Expand Up @@ -99,7 +99,7 @@ type LeafTransformer = (
To apply transformations to specific fields within object types, pass `objectFieldTransformers` to `transform()`, namespaced by type name and field name:

```ts
import { transform } from '@yaacovCR/transform';
import { transform } from '@yaacovcr/transform';

const transformed = await transform({
schema,
Expand Down Expand Up @@ -131,7 +131,7 @@ type FieldTransformer = (
To apply transformations based on a field's specific location within the operation, pass `pathScopedFieldTransformers` to `transform()`. The keys are period-delimited paths reflecting the field structure in the operation (numeric list indices are omitted).

```ts
import { transform } from '@yaacovCR/transform';
import { transform } from '@yaacovcr/transform';

const transformed = await transform({
schema,
Expand All @@ -149,7 +149,7 @@ const transformed = await transform({
If you need to interact with systems expecting the older incremental delivery format (from `graphql-js` pre-v17), you can enable conversion:

```ts
import { transform } from '@yaacovCR/transform';
import { transform } from '@yaacovcr/transform';

const result = await transform({
schema,
Expand All @@ -163,7 +163,7 @@ const result = await transform({
Alternatively, if you are working with a single GraphQL service (no composition) and need the legacy format, the `legacyExecuteIncrementally()` function provides a dedicated interface:

```ts
import { legacyExecuteIncrementally } from '@yaacovCR/transform';
import { legacyExecuteIncrementally } from '@yaacovcr/transform';

const result = await legacyExecuteIncrementally({
schema,
Expand Down