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: Fix issue with fetching cleric starting equipment options with prerequisites #329

Merged

Conversation

SleeplessOne1917
Copy link
Contributor

What does this do?

As the title says. If you run the following query:

query Class {
		class(index: "cleric") {
			starting_equipment_options {
				choose
				desc
				from {
					... on EquipmentCategoryOptionSet {
						equipment_category {
							index
							name
						}
					}
					... on EquipmentOptionSet {
						options {
							... on CountedReferenceOption {
								count
								of {
									index
									name
									... on Pack {
										contents {
											quantity
											item {
												index
												name
											}
										}
									}
								}
								prerequisites {
									type
									proficiency {
										name
										type
										index
									}
								}
							}
							... on EquipmentCategoryChoiceOption {
								choice {
									choose
									from {
										equipment_category {
											index
											name
										}
									}
								}
							}
							... on EquipmentMultipleOption {
								items {
									... on CountedReferenceOption {
										count
										of {
											index
											name
											... on Pack {
												contents {
													quantity
													item {
														index
														name
													}
												}
											}
										}
										prerequisites {
											type
											proficiency {
												index
												name
												type
											}
										}
									}
									... on EquipmentCategoryChoiceOption {
										choice {
											choose
											from {
												equipment_category {
													index
													name
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}

You get this error:
prerequisites error

How was it tested?

I ran the API locally and queried it.

Is there a Github issue this is resolving?

n/a

Was any impacted documentation updated to reflect this change?

n/a

Here's a fun image for your troubles

random photo - update me

@bagelbits bagelbits enabled auto-merge (squash) August 19, 2022 04:53
@bagelbits bagelbits merged commit 3c7fe47 into 5e-bits:main Aug 19, 2022
@github-actions
Copy link

🎉 This PR is included in version 2.4.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants