Skip to content

Commit

Permalink
refactor: migrate package code base from FlowType to TypeScript
Browse files Browse the repository at this point in the history
BREAKING CHANGE: FlowType definitions no more available in this package
  • Loading branch information
nodkz committed Aug 16, 2020
1 parent ed62aba commit 348d09d
Show file tree
Hide file tree
Showing 86 changed files with 446 additions and 1,654 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ const childSchema = new Schema({

When we convert model `const UserTC = composeWithMongoose(User, customizationOptions);` you may tune every piece of future derived types and resolvers.

### Here is flow typed definition of this options:
### Here is typed definition of this options:

The top level of customization options. Here you setup name and description for the main type, remove fields or leave only desired fields.

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
"url": "https://github.com/graphql-compose/graphql-compose-mongoose/issues"
},
"homepage": "https://github.com/graphql-compose/graphql-compose-mongoose",
"dependencies": {
"object-path": "^0.11.4"
},
"dependencies": {},
"optionalDependencies": {
"graphql-compose-connection": "^6.2.0",
"graphql-compose-pagination": "6.1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/composeWithMongooseDiscriminators-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('composeWithMongooseDiscriminators ->', () => {
});
});

describe('composeWithMongoose customisationOptions', () => {
describe('composeWithMongoose customizationOptions', () => {
it('required input fields, should be passed down to resolvers', () => {
const typeComposer = composeWithMongooseDiscriminators(CharacterModel, {
inputType: {
Expand Down
134 changes: 0 additions & 134 deletions src/composeWithMongoose.d.ts

This file was deleted.

Loading

0 comments on commit 348d09d

Please sign in to comment.