ash-project / ash-project/ash_graphql

Relay support discontinued?

Open
#339 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Elixir
Stars
97
Forks
102
Avg merge
12h 51m
Merged PRs (30d)
5

Description

### Versions

Hello! First of all - thanks for the amazing work in everything ash-related. Mind-blowing stuff.

I'm looking into building a relay-compatible graphql API, but I can't manage to get it working. The documentation mentions `relay? true` being available in resources, but I get a compilation errors. Has that been deprecated?

In short, I can't seem to be able to do what's mentioned here:

https://github.com/ash-project/ash_graphql/blob/v1.7.17/documentation/topics/relay.md

Thanks!

### Operating system

devcontainer (with alpine)

### Current Behavior

_No response_

### Reproduction

Something like this:

```
graphql do
relay? true
type :foo
end
```

Results in:

```
undefined function relay?/1 (there is no such import)
```

### Expected Behavior

`relay? true` compiles.

Contributor guide

Open the contributing guide

Research direction

Start with documentation/topics/relay.md at the referenced v1.7.17 revision, then run the reported graphql block and inspect the current resource DSL around relay? support. Confirm whether the option is still supported or deprecated, and update the documentation or reported behavior so the documented example and compiler result agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, graphql
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.