graphql-batch-processing:GraphQL批处理库

时间:2024-06-10 04:41:05
【文件属性】:

文件名称:graphql-batch-processing:GraphQL批处理库

文件大小:7KB

文件格式:ZIP

更新时间:2024-06-10 04:41:05

PHP

GraphQL批处理机 简单的例子: // Name of the cache is `addressesByUserId` return Batch :: as ( 'addressesByUserId' ) // Collect user IDs -> collectOne ( $ user -> id ()) // When all user IDs are collected, fetch addresses for all collected user IDs // The callback is only executed once for each set of user IDs // And cached internally under the name `addressesByUserId` -> fetchOneTo


【文件预览】:
graphql-batch-processing-master
----composer.json(771B)
----.travis.yml(297B)
----phpunit.xml(181B)
----test()
--------BatchTest.php(5KB)
----src()
--------FetchContext.php(4KB)
--------Batch.php(8KB)
----psalm.xml(378B)
----.gitignore(56B)
----README.md(2KB)

网友评论