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

feat: More GraphQL fields #106

Merged
merged 1 commit into from
Jan 14, 2024
Merged

feat: More GraphQL fields #106

merged 1 commit into from
Jan 14, 2024

Conversation

kevinmichaelchen
Copy link
Owner

@kevinmichaelchen kevinmichaelchen commented Jan 14, 2024

Creating a License

REST

pkgx http POST \
  http://localhost:9092/licenses/00000000-0000-0000-0000-000000000000 <<<'
  {
    "id": "00000000-0000-0000-0000-000000000000",
    "start": "2023-11-16T12:00:00Z",
    "end": "2024-01-16T12:00:00Z",
    "userId": "00000000-0000-0000-0000-000000000000"
  }
  '

Timestamps are problematic

pkgx tailcall start \
  ./tailcall/server.graphql \
  ./tailcall/org.graphql \
  ./tailcall/profile.graphql \
  ./tailcall/license.graphql

returns errors related to CreateLicenseInput.end:

[2024-01-14T02:46:09Z INFO  tailcall::cli::tc] N + 1: 0
thread 'main' panicked at src/blueprint/blueprint.rs:220:21:
called `Result::unwrap()` on an `Err` value: SchemaError("Field \"CreateLicenseInput.end\" must accept a input type")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@kevinmichaelchen kevinmichaelchen merged commit 7de12e9 into main Jan 14, 2024
4 checks passed
@kevinmichaelchen kevinmichaelchen deleted the more-graphql-fields branch January 14, 2024 05:01
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.

1 participant