Skip to content

Commit 5e08527

Browse files
committed
style(Prettier): Fix code style
1 parent 9baa40f commit 5e08527

File tree

8 files changed

+23
-24
lines changed

8 files changed

+23
-24
lines changed

src/resolvers/removeById.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export default function removeById(
4747
kind: 'mutation',
4848
description:
4949
'Remove one document: ' +
50-
'1) Retrieve one document and remove with hooks via findByIdAndRemove. ' +
51-
'2) Return removed document.',
50+
'1) Retrieve one document and remove with hooks via findByIdAndRemove. ' +
51+
'2) Return removed document.',
5252
type: outputType,
5353
args: {
5454
_id: {

src/resolvers/removeMany.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export default function removeMany(
3939
kind: 'mutation',
4040
description:
4141
'Remove many documents without returning them: ' +
42-
'Use Query.remove mongoose method. ' +
43-
'Do not apply mongoose defaults, setters, hooks and validation. ',
42+
'Use Query.remove mongoose method. ' +
43+
'Do not apply mongoose defaults, setters, hooks and validation. ',
4444
type: outputType,
4545
args: {
4646
...filterHelperArgs(typeComposer, model, {

src/resolvers/removeOne.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export default function removeOne(
4747
kind: 'mutation',
4848
description:
4949
'Remove one document: ' +
50-
'1) Remove with hooks via findOneAndRemove. ' +
51-
'2) Return removed document.',
50+
'1) Remove with hooks via findOneAndRemove. ' +
51+
'2) Return removed document.',
5252
type: outputType,
5353
args: {
5454
...filterHelperArgs(typeComposer, model, {

src/resolvers/updateById.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export default function updateById(
4747
kind: 'mutation',
4848
description:
4949
'Update one document: ' +
50-
'1) Retrieve one document by findById. ' +
51-
'2) Apply updates to mongoose document. ' +
52-
'3) Mongoose applies defaults, setters, hooks and validation. ' +
53-
'4) And save it.',
50+
'1) Retrieve one document by findById. ' +
51+
'2) Apply updates to mongoose document. ' +
52+
'3) Mongoose applies defaults, setters, hooks and validation. ' +
53+
'4) And save it.',
5454
type: outputType,
5555
args: {
5656
...recordHelperArgs(typeComposer, {

src/resolvers/updateMany.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export default function updateMany(
4242
kind: 'mutation',
4343
description:
4444
'Update many documents without returning them: ' +
45-
'Use Query.update mongoose method. ' +
46-
'Do not apply mongoose defaults, setters, hooks and validation. ',
45+
'Use Query.update mongoose method. ' +
46+
'Do not apply mongoose defaults, setters, hooks and validation. ',
4747
type: outputType,
4848
args: {
4949
...recordHelperArgs(typeComposer, {

src/resolvers/updateOne.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export default function updateOne(
4949
kind: 'mutation',
5050
description:
5151
'Update one document: ' +
52-
'1) Retrieve one document via findOne. ' +
53-
'2) Apply updates to mongoose document. ' +
54-
'3) Mongoose applies defaults, setters, hooks and validation. ' +
55-
'4) And save it.',
52+
'1) Retrieve one document via findOne. ' +
53+
'2) Apply updates to mongoose document. ' +
54+
'3) Mongoose applies defaults, setters, hooks and validation. ' +
55+
'4) And save it.',
5656
type: outputType,
5757
args: {
5858
...recordHelperArgs(typeComposer, {

src/types/mongoid.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const GraphQLMongoID = new GraphQLScalarType({
88
name: 'MongoID',
99
description:
1010
'The `ID` scalar type represents a unique MongoDB identifier in collection. ' +
11-
'MongoDB by default use 12-byte ObjectId value ' +
12-
'(https://docs.mongodb.com/manual/reference/bson-types/#objectid). ' +
13-
'But MongoDB also may accepts string or integer as correct values for _id field.',
11+
'MongoDB by default use 12-byte ObjectId value ' +
12+
'(https://docs.mongodb.com/manual/reference/bson-types/#objectid). ' +
13+
'But MongoDB also may accepts string or integer as correct values for _id field.',
1414
serialize: String,
1515
parseValue: String,
1616
parseLiteral(ast) {

src/utils/getIndexesFromModel.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ function isSpecificIndex(idx) {
1717
return hasSpecialIndex;
1818
}
1919

20-
/**
20+
/*
2121
* Get mongoose model, and return array of fields with indexes.
2222
* MongooseModel -> [ { _id: 1 }, { name: 1, surname: -1 } ]
23-
**/
23+
*/
2424
export function getIndexesFromModel(
2525
mongooseModel: MongooseModelT,
2626
opts: getIndexesFromModelOpts = {}
2727
): ObjectMap[] {
2828
const extractCompound = opts.extractCompound === undefined ? true : Boolean(opts.extractCompound);
29-
const skipSpecificIndexes = opts.skipSpecificIndexes === undefined
30-
? true
31-
: Boolean(opts.skipSpecificIndexes);
29+
const skipSpecificIndexes =
30+
opts.skipSpecificIndexes === undefined ? true : Boolean(opts.skipSpecificIndexes);
3231

3332
const indexedFields = [];
3433

0 commit comments

Comments
 (0)