Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/relative imports #41

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions lib/gateway/NodeGateway.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ApolloGateway } from '@apollo/gateway';
import type { GatewayConfig } from '@apollo/gateway';

import type { NodeServiceConfig } from 'lib/service';
import createNodeGatewayConfig from 'lib/utils/createNodeGatewayConfig';
import type { NodeServiceConfig } from '../service';
import createNodeGatewayConfig from '../utils/createNodeGatewayConfig';

export default class NodeGateway extends ApolloGateway {
constructor(
Expand Down
2 changes: 1 addition & 1 deletion lib/service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { DocumentNode, GraphQLSchema } from 'graphql';
import { mapSchema } from '@graphql-tools/utils';
import type { SchemaMapper } from '@graphql-tools/utils';

import type TypeIDDataSource from 'lib/utils/TypeIDDataSource';
import type TypeIDDataSource from '../utils/TypeIDDataSource';

import { nodeInterface, createNodeQuery } from './schemas';
import resolvers from './resolvers';
Expand Down
2 changes: 1 addition & 1 deletion lib/service/resolvers/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TypeIDDataSource from 'lib/utils/TypeIDDataSource';
import TypeIDDataSource from '../../utils/TypeIDDataSource';

import resolvers from './index';

Expand Down
2 changes: 1 addition & 1 deletion lib/service/resolvers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TypeIDDataSource from 'lib/utils/TypeIDDataSource';
import TypeIDDataSource from '../../utils/TypeIDDataSource';

export interface Node {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/createNodeGatewayConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SupergraphSdlHookGatewayConfig,
} from '@apollo/gateway/dist/config';

import type { NodeServiceConfig } from 'lib/service';
import type { NodeServiceConfig } from '../service';

import createBuildService from './createBuildService';
import createNodeSupergraphSdlHookAndDataSource from './createNodeSupergraphSdlHookAndDataSource';
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/createNodeSubgraphAndDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import gql from 'graphql-tag';

import { buildSubgraph, isObjectType } from '@apollo/federation-internals';

import createNodeService from 'lib/service';
import type { NodeServiceConfig } from 'lib/service';
import createNodeService from '../service';
import type { NodeServiceConfig } from '../service';

import { createNodeServiceEndPoint } from './constants';

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/createNodeSupergraphSdlHookAndDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { Subgraphs } from '@apollo/federation-internals';
import { compose } from '@apollo/composition';
import { createHash } from '@apollo/utils.createhash';

import type { NodeServiceConfig } from 'lib/service';
import type { NodeServiceConfig } from '../service';

import createNodeSubgraphAndDataSource from './createNodeSubgraphAndDataSource';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@profusion/apollo-federation-node-gateway",
"version": "4.0.0",
"version": "4.0.1",
"main": "./build/lib/index.js",
"types": "./build/lib/index.d.ts",
"author": "Guilherme Iscaro (iscaro@profusion.mobi)",
Expand Down