We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The result's schema is the following. Missing fields:
package_metadata
input
forge
The text was updated successfully, but these errors were encountered:
{ "payload": { "package_metadata": [ { "licenses": ["BSD-3-Clause", "Apache 2.0"], "authors": ["Frances Allen", "Grace Hopper"], }, ... ] } }
This could be achieved either with a separate query:
query PackagesAndFilesMetadata($itype: string, $dtype: string) { PackageNodes(func: has(packageNodeType)) @cascade { # Package info name version # Package metadata additionalInfo @filter(eq(type, $itype))(orderdesc: confidenceScore, first: 1) { # InfoNodes type dataNodes @filter(eq(type, $dtype)) { # DataNodes data } } } }
Or by extending the current one:
query PackagesAndFilesMetadata($itype: string, $dtype: string) { PackageNodes(func: has(packageNodeType)) @cascade { # Package info name version # Package files targets { # FileNodes # File info path # File metadata fileData { # FileDataNodes hash additionalInfo @filter(eq(type, $itype))(orderdesc: confidenceScore, first: 1) { # InfoNodes type dataNodes @filter(eq(type, $dtype)) { # DataNodes data } } } } # Package metadata additionalInfo @filter(eq(type, $itype))(orderdesc: confidenceScore, first: 1) { # InfoNodes type dataNodes @filter(eq(type, $dtype)) { # DataNodes data } } } }
With $itype = "license" and $dtype = "name.
$itype = "license"
$dtype = "name
Sorry, something went wrong.
No branches or pull requests
The result's schema is the following.
Missing fields:
package_metadata
input
.forge
The text was updated successfully, but these errors were encountered: