Skip to content

Commit

Permalink
json-schema-reddit example
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Apr 16, 2024
1 parent d9150d5 commit 17b9c84
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 71 deletions.

This file was deleted.

34 changes: 0 additions & 34 deletions e2e/json-schema-reddit/json-schema-reddit.test.ts

This file was deleted.

1 change: 1 addition & 0 deletions examples/v1-next/json-schema-reddit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fusiongraph.graphql
3 changes: 0 additions & 3 deletions examples/v1-next/json-schema-reddit/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { OperationTypeNode } from 'graphql';
import { Args } from '@e2e/args';
import { defineConfig as defineComposeConfig } from '@graphql-mesh/compose-cli';
import { defineConfig as defineServeConfig } from '@graphql-mesh/serve-cli';
import { loadJSONSchemaSubgraph } from '@omnigraph/json-schema';

const args = Args(process.argv);

export const composeConfig = defineComposeConfig({
target: args.get('target'),
target: 'fusiongraph.graphql',
subgraphs: [
{
sourceHandler: loadJSONSchemaSubgraph('Reddit', {
Expand Down Expand Up @@ -39,6 +36,5 @@ export const composeConfig = defineComposeConfig({
});

export const serveConfig = defineServeConfig({
port: args.getPort(),
fusiongraph: args.get('fusiongraph'),
fusiongraph: 'fusiongraph.graphql',
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "@e2e/reddit-example",
"name": "@examples/reddit-example",
"private": true,
"scripts": {
"compose": "yarn mesh-compose",
"serve": "yarn mesh-serve"
},
"dependencies": {
"@graphql-mesh/compose-cli": "workspace:*",
"@graphql-mesh/serve-cli": "workspace:*",
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3743,17 +3743,6 @@ __metadata:
languageName: unknown
linkType: soft

"@e2e/reddit-example@workspace:e2e/json-schema-reddit":
version: 0.0.0-use.local
resolution: "@e2e/reddit-example@workspace:e2e/json-schema-reddit"
dependencies:
"@graphql-mesh/compose-cli": "workspace:*"
"@graphql-mesh/serve-cli": "workspace:*"
"@omnigraph/json-schema": "workspace:*"
graphql: "npm:16.8.1"
languageName: unknown
linkType: soft

"@e2e/soap-demo@workspace:e2e/soap-demo":
version: 0.0.0-use.local
resolution: "@e2e/soap-demo@workspace:e2e/soap-demo"
Expand Down Expand Up @@ -4239,6 +4228,17 @@ __metadata:
languageName: node
linkType: hard

"@examples/reddit-example@workspace:examples/v1-next/json-schema-reddit":
version: 0.0.0-use.local
resolution: "@examples/reddit-example@workspace:examples/v1-next/json-schema-reddit"
dependencies:
"@graphql-mesh/compose-cli": "workspace:*"
"@graphql-mesh/serve-cli": "workspace:*"
"@omnigraph/json-schema": "workspace:*"
graphql: "npm:16.8.1"
languageName: unknown
linkType: soft

"@fastify/ajv-compiler@npm:^3.5.0":
version: 3.5.0
resolution: "@fastify/ajv-compiler@npm:3.5.0"
Expand Down

0 comments on commit 17b9c84

Please sign in to comment.