Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Truffle DB's Project abstraction lacks an easy read interface #5643

Open
gnidan opened this issue Oct 25, 2022 · 0 comments
Open

Truffle DB's Project abstraction lacks an easy read interface #5643

gnidan opened this issue Oct 25, 2022 · 0 comments

Comments

@gnidan
Copy link
Contributor

gnidan commented Oct 25, 2022

Issue

The @truffle/db Project abstraction allows loading compilations and migrations, but does not provide an easy means to query a particular project for contracts or contract instances, thus requiring someone who wants this data to construct a graphql query by hand.

Like, no one really wants to have to do this:

query {
  projects {
    contractInstances(
      contract: { name: "Example" }
      network: { name: "develop" }
    ) {
      contract { name } 
      address
      }
    }
}

Environment

  • Operating System:
  • Ethereum client:
  • Truffle version (truffle version): v5.6.2
  • node version (node --version):
  • npm version (npm --version):
@davidmurdoch davidmurdoch changed the title Truffle DB's Project abstraction lacks any read interface Truffle DB's Project abstraction lacks an easy read interface Oct 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants