The Wayback Machine - https://web.archive.org/web/20220404041150/https://github.com/topics/ash
Skip to content
#

ash

Here are 71 public repositories matching this topic...

joshprice
joshprice commented Mar 19, 2022

First thing I tried to do for read actions was implement fetch all and fetch by id, and ended up with this:

  actions
    read :all do
      primary? true
    end

    read :get_by_id
  end

  code_interface do
    define_for Api

    define :all, action: :all
    define :get_by_id, action: :get_by_id, args: [:id], get?: true
  end

I assumed that the `define :get

enhancement good first issue
zachdaniel
zachdaniel commented Aug 3, 2021

I've laid the groundwork for relay support, pushed to master now. There are three remaining steps:

  • when fetching :has_many or :many_to_many relationships, we need to wrap them in a connection if the destination action supports pagination
  • when selecting fields, we need to look at the selections inside of the ["edges", "node"] path
  • we need to build the actual connection object. I've
enhancement good first issue

Improve this page

Add a description, image, and links to the ash topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ash topic, visit your repo's landing page and select "manage topics."

Learn more