combineResolvers
Function: combineResolvers()
Parameters
Parameter
Type
Default value
Description
Returns
Example
import { MemoryStore } from '@twine-protocol/twine-core'
const store1 = new MemoryStore()
const store2 = new MemoryStore()
store2.save(someChain) // exists in store2 but not store1
const combined = combineResolvers([store1, store2])
const { chain } = await combined.resolve({ chain: someChain.cid })
console.log(chain) // someChainDefined in
Last updated