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 Special Characters in Schema #41

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

andreachild
Copy link
Contributor

PR to Allow Special Characters in Schema

This PR is to edit the graphQL schema to support any graph data that has special/invalid characters (colons, periods, and hyphens)

How it Works + Changes

  • get data using OpenCypher queries
    • add backticks to labels to escape special characters
  • creates graphQL schema
    • replaces invalid characters with something else that works (_cn_, _dot_, _hy_)
    • adds alias directives with the original label
  • querying in AppSync which converts graphQL requests to OpenCypher queries
    • uses the labels in the alias directives to create query with original labels
    • add backticks when creating query to escape special characters

…t has special/invalid characters

Changes
- get data using OpenCypher queries
  - add backticks to labels to escape special characters
- creates graphQL schema
  - replaces invalid characters with something else that works (ex. `_cn_`, `_dot_`, `_hy_`)
  - adds alias directives with the original label
- querying in AppSync which converts graphQL requests to OpenCypher queries
  - uses the labels in the alias directives to create query with original labels
  - add backticks when creating query to escape special characters
@Cole-Greer Cole-Greer merged commit 2d6c08c into aws:main Nov 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants