Skip to content

Commit

Permalink
refactor fattyAcid module
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm committed Dec 8, 2023
1 parent 3fc66f3 commit c47327f
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 43 deletions.
34 changes: 34 additions & 0 deletions src/modules/fattyAcid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { gql } from "@elysiajs/apollo";
import { createModule } from "./createModule";

export const fattyAcidModule = createModule({
resolvers: {},
typeDefs: [
gql`
type FattyAcid {
saturated: Float!
monounsaturated: Float!
polyunsaturated: Float!
twelveZero: Float
fourteenZero: Float
fourteenOne: Float
sixteenZero: Float
sixteenOne: Float
eighteenZero: Float
eighteenOne: Float
eighteenOneT: Float
eighteenTwoN6: Float
eighteenTwoT: Float
eighteenThreeN3: Float
twentyZero: Float
twentyOne: Float
twentyFour: Float
twentyFive: Float
twentyTwoZero: Float
twentyTwoFive: Float
twentyTwoSix: Float
twentyFourZero: Float
}
`,
],
});
1 change: 0 additions & 1 deletion src/modules/fattyAcid/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/modules/fattyAcid/schema.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/modules/fattyAcid/typeDef.ts

This file was deleted.

3 changes: 3 additions & 0 deletions src/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { aminoAcidModule } from "./aminoAcid";
import { categoryModule } from "./category";
import { createModule } from "./createModule";
import { fattyAcidModule } from "./fattyAcid";
import { foodModule } from "./food";
import { nutrientModule } from "./nutrient";
import { unitModule } from "./unit";
Expand All @@ -12,12 +13,14 @@ export const config = createModule({
...foodModule.typeDefs,
...aminoAcidModule.typeDefs,
...categoryModule.typeDefs,
...fattyAcidModule.typeDefs,
],
resolvers: {
...unitModule.resolvers,
...nutrientModule.resolvers,
...foodModule.resolvers,
...aminoAcidModule.resolvers,
...categoryModule.resolvers,
...fattyAcidModule.resolvers,
},
});

0 comments on commit c47327f

Please sign in to comment.