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
MQ通过Message传递参数,但是无法快速获取入参。
通过ExecutionInput解析参数较为复杂
ExecutionInput
private Optional<Argument> getArgumentByName(ExecutionInput input, String name) { return parser.parseDocument(input.getQuery()) .getDefinitionsOfType(OperationDefinition.class).stream() .map(OperationDefinition::getSelectionSet) .map(it -> it.getSelectionsOfType(Field.class)) .filter(Objects::nonNull) .flatMap(Collection::stream) .map(Field::getArguments) .filter(Objects::nonNull) .flatMap(Collection::stream) .filter(it -> it.getName().equals(name)) .findAny(); }
考虑通过新属性传递,或者提供相关工具扩展
MQ consumer 可以快速获取入参
The text was updated successfully, but these errors were encountered:
No branches or pull requests
背景
MQ通过Message传递参数,但是无法快速获取入参。
方案
通过
ExecutionInput
解析参数较为复杂考虑通过新属性传递,或者提供相关工具扩展
验收
MQ consumer 可以快速获取入参
The text was updated successfully, but these errors were encountered: