Skip to content

Commit

Permalink
Merge pull request #9 from julesferreira/fix-scaling-typo
Browse files Browse the repository at this point in the history
FIX: Allow lookup of _scaling_ values in GQL
  • Loading branch information
deliton committed Apr 1, 2022
2 parents a418442 + 9c8ded4 commit 52ae346
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions api/pages/api/graphql/typeDef.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { gql } from "apollo-server-micro";

export const typeDefs = gql`
type ScallingEntry {
scalling: String
type ScalingEntry {
scaling: String
name: String
}
Expand Down Expand Up @@ -125,7 +125,7 @@ export const typeDefs = gql`
description: String
attack: [AttributeEntry]
defence: [AttributeEntry]
scalesWith: [ScallingEntry]
scalesWith: [ScalingEntry]
requiredAttributes: [AttributeEntry]
category: String
weight: Int
Expand Down Expand Up @@ -168,7 +168,7 @@ export const typeDefs = gql`
description: String
attack: [AttributeEntry]
defence: [AttributeEntry]
scalesWith: [ScallingEntry]
scalesWith: [ScalingEntry]
requiredAttributes: [AttributeEntry]
category: String
weight: Int
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/shields.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This route fetches a list of all Shields that can be obtained in Elden Ring, and
| attack | `{ name: string, amount: number }` | How much damage the Shield does when used as a weapon |
| defence | `{ name: string, amount: number }` | How much damage the Shield blocks when used as a shield |
| requiredAttributes | `{ name: string, amount: number }` | What are the required attribute amount in order to properly use this shield. Example: `{ name: "Str", amount: 20 }` |
| scalesWith | `{ name: string, scaling: string }` | How much the shield scales and with what attributes. Example: `{ name: "Str", scalling: "B" }` |
| scalesWith | `{ name: string, scaling: string }` | How much the shield scales and with what attributes. Example: `{ name: "Str", scaling: "B" }` |

## Sample Result

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/weapons.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This route fetches a list of all Weapons that can be obtained in Elden Ring, and
| attack | `{ name: string, amount: number }` | How much damage the Weapon does when used as a weapon |
| defence | `{ name: string, amount: number }` | How much damage the Weapon blocks when used to defend an attack |
| requiredAttributes | `{ name: string, amount: number }` | What are the required attribute amount in order to properly use this Weapon. Example: `{ name: "Str", amount: 20 }` |
| scalesWith | `{ name: string, scaling: string }` | How much the Weapon scales and with what attributes. Example: `{ name: "Str", scalling: "B" }` |
| scalesWith | `{ name: string, scaling: string }` | How much the Weapon scales and with what attributes. Example: `{ name: "Str", scaling: "B" }` |

## Sample Result

Expand Down

2 comments on commit 52ae346

@vercel
Copy link

@vercel vercel bot commented on 52ae346 Apr 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

eldenring-api – ./api

eldenring-api-deliton.vercel.app
eldenring-api-git-main-deliton.vercel.app
eldenring.fanapis.com

@vercel
Copy link

@vercel vercel bot commented on 52ae346 Apr 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-eldenring-api – ./docs

docs-eldenring-api-git-main-deliton.vercel.app
docs-eldenring-api-deliton.vercel.app
docs.eldenring.fanapis.com

Please sign in to comment.