Code Monkey home page Code Monkey logo

docs's People

Contributors

ahmadmardeni1 avatar alex-pakalniskis avatar alexandriaroberts avatar azf20 avatar bcj-dev avatar benface avatar bermchain avatar charlypoly avatar dabit3 avatar dimamachina avatar dimitrovmaksim avatar enoldev avatar evaporei avatar idalithb avatar incrypto32 avatar itsjerryokolo avatar leoyvens avatar marcusrein avatar michaelmacaulay avatar mitchhs12 avatar nenadjaja avatar pdiomede avatar pedromd avatar petkodes avatar promaty avatar saihaj avatar shiyasmohd avatar tilacog avatar web3slimchance avatar yash251 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Current `store` interface is confusing when using `Bytes` `id`

The functions in the store module (get, set, remove) are a bit confusing right now when subgraph use Bytes as their id; the host interface still requires that the id is passed as a string, for Bytes it needs to be id.toHexString(). For get and set, the difference is hidden by the code that graph-cli generates, so that subgraph authors can say Thing.get(id) no matter whether Thing uses String or Bytes for its ids.

But for remove, users need to use the 'raw' interface and write store.remove(id.toHexString()) which can be confusing.

I don't think we should actually change the calling convention for the store functions; instead, we should document this more clearly and explain how to work with these functions when id has type Bytes.

This was first reported as part of graphprotocol/graph-node#3476

BigInt & BigDecimal does not have .dividedBy() method.

In the docs, it says BigInt has the dividedBy() method. It seems this has been updated to div()
Same with BigDecimal. It was renamed to div()
I'm on versions:
"@graphprotocol/graph-cli": "^0.22.3",
"@graphprotocol/graph-ts": "^0.22.1"
Screenshot 2022-01-11 at 9 39 29 AM

pagination problems

the “Next” link at the bottom of this page goes to the wrong page (“Dependency installation”; it skips “Overview”, which is the actual next page).

Huh, and on the Dependency installation page, the “Previous” link goes to… the current page. And the “Next” link skips another page, too. (edited)

Gnosis Beta

Add * in beta in pages/en/network-transition-faq.mdx
Move to The Graph Network & Hosted Service and add * on `Get Started

add spell checker for `en` folder

use cspell?
image

UPDATE:

dapp is not typo here, but anyway spell checker will be nice improvement where dapp could be add as exception

New Indexing Subsection

Same design as "subgraphs".

Having

  • Operating Graph Node
  • Substreams
  • Firehose

in there.

Plus moving "Cookbook" under "subgraphs"

Code snippets in translations have errors

After fixing an issue we had with the prettier formatting in the `AssemblyScript Migration Guide) I realized some code snippets in translations were incorrect.

The issues I've found are listed below:

  • Incorrect compiler messages (eg: quotes on the wrong place)
  • Replacing special characters such as ? to ؟ in code (I couldn't find in the current main branch, perhaps this got fixed in the last batch of Crowdin updates? 🤔 )
  • Missing code and comments from the original snippet (eg: incomplete line)

More info on `dataSources.mapping.entities`

It seems dataSources.mapping.entities is not strictly validated with the defined schema and would still work without issues as long as they're not empty in the manifest.

- `dataSources.mapping.entities`: the entities that the data source writes to the store. The schema for each entity is defined in the schema.graphql file.

It would be nice to have some more info on how exactly this config is being used, and also of the fact that its not validated with the schema

Provide possible values of different networks

At the moment, the examples in the documentation don't show all the possible values for the network property in data sources. The only way of checking this is by running graph init and seeing the options, and even then you don't have a guarantee that the values in the list are exactly the ones that will end up on the manifest

Mention handlers are atomic

Might be a useful info to know that changes made in a handler are cached in memory and applied to the store at the end, making them atomic in effect

Add Arweave and Osmosis to https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-hosted/

Also check if other available chains are not listed there and if there are other places where chain support is incomplete.

Chains according to hosted service config:

[chains.matic]

[chains.mumbai]

[chains.optimism]

[chains.optimism-goerli]

[chains.fantom]

[chains.bsc]

[chains.clover]

[chains.fuse]

[chains.chapel]

[chains.avalanche]

[chains.fuji]

[chains.celo]

[chains.celo-alfajores]

[chains.mbase]

[chains.moonriver]

[chains.arbitrum-one]

[chains.near-mainnet]

[chains.near-testnet]

[chains.mainnet]

[chains.goerli]

[chains.poa-sokol]

[chains.xdai]

[chains.gnosis]

[chains.aurora-testnet]

[chains.aurora]

[chains.fantom-testnet]

[chains.moonbeam]

[chains.boba]

[chains.zkSync2-testnet]

[chains.harmony]

[chains.arbitrum-goerli]

[chains.cosmoshub-4]

[chains.theta-testnet-001]

[chains.arweave-mainnet]

[chains.osmosis-1]

one-to-many (Reverse Lookups)

I am learning how to build subgraphs and reading through the docs, and quite confusing the second paragraph on the one-to-many reverse lookups topic which is

"For one-to-many relationships, the relationship should always be stored on the 'one' side, and the 'many' side should always be derived."

Should it be the other way around? As the given example below, a Token can have many TokenBalances, while a TokenBalance can belong to a single Token, so the 'one' side (Token) is "derived", and the 'many' side (TokenBalance) stores the relationship.

type Token @entity(immutable: true) {
  id: Bytes!
  tokenBalances: [TokenBalance!]! @derivedFrom(field: "token")
}

type TokenBalance @entity {
  id: Bytes!
  amount: Int!
  token: Token!
}

Support Light Theme

Please support light theme, my eyes are struggling to read dark websites. Thanks!
24430840c9e072f0773f7cb1e085676

Correct Spelling on Developing Page in the docs

In the Developing Page under the sub-heading of Querying and Application Development, in the last line of 2nd paragraph the spelling of time is wrong, check it here . We need to correct it because it could be difficult to understand for some people at first.

I would like to work on the issue to fix the error.

Screenshot (57)

yarn global add @graphprotocol/graph-cli Not working

as mentioned when I first try to install it with yarn and checked using graph -v it was giving an error but when I use npm it worked

yarn global add @graphprotocol/graph-cli 
is not working 

npm install -g @graphprotocol/graph-cli
is working

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.