discussions Search Results · topic:graphql org:graphprotocol fork:true
Filter by
87 results
ingraphprotocol (press backspace or delete to remove)The topic qualifier is not supported when searching discussions. Try searching for repositories instead?
:
Hey, can someone tell me how to turn off the default GraphClient - xdata logs? The pink ones. Currently they are
flooding my console and it is making it hard to debug anything. Thanks.
:
I see that the Event type provides a from field, but this is the msg.sender. It s not the same as the tx.origin.
Does The Graph provide a way to obtain the tx.origin?
:
Problem
According to the docs for the Logging API, log.critical terminates the subgraph:
log.critical(fmt: string, args: Array string ): void – logs a critical message and terminates the Subgraph
The ...
:
The docs mention the possibility of defining an item of type List in the YAML subgraph manifest:
dataSources:
- kind: ethereum/contract
name: ContractName
network: mainnet
context:
...
:
Given an entity defined like so:
type Batch @entity {
id: String!
hash: Bytes!
timestamp: BigInt!
batcher: Batcher
size: BigInt!
streams: [Stream!]! @derivedFrom(field: batch )
}
Is it possible ...
:
I am not sure what is this field index in the Transaction type provided by The Graph s @graphprotocol/graph-ts package:
export class Transaction {
constructor(
public hash: Bytes,
public index: ...
:
Suppose you have a transaction that emits multiple Foo events, say, 8 events.
In the event handler handleFoo, is it possible to know the index of the Foo event in the transaction, i.e., which one of
those ...
:
Idea
Is there any reason why event signatures cannot contain named parameters in a subgraph manifest?
Surely the graph-cli could strip out the names from the signatures when looking for the corresponding ...
:
Suppose you have multiple subgraphs that use similar GraphQL schemas.
Is there any way to reuse schema.graphql logic between subgraphs with have overlapping logic? e.g. create a
shared-schema.graphql ...
:
Docs ref:
https://thegraph.com/docs/en/subgraphs/developing/creating/subgraph-manifest/#data-source-for-the-main-contract