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: Allow lookup of _scaling_ values in GQL #9

Merged
merged 1 commit into from
Apr 1, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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