Comments (3)
So I changed my resolver to following
return new Promise((resolve, reject) => {
collection.find(args).toArray((err, questionnaires) => {
if (err) {
logger.error(err);
let error = errorUtils.internal(version, err.message);
return reject(errorUtils.formatErrorForGraphQL(error));
} else {
console.log('questionnaires are', questionnaires);
let finalQuestionnaires = questionnaires.map(singleQuestion => {
return {
resource: singleQuestion
};
});
return resolve({
entry: finalQuestionnaires
});
}
});
});
but got error data is not defined
and solved that by changing code in resourcelist.schema.js.
Am I missing something or there is code error in https://github.com/Asymmetrik/graphql-fhir/blob/master/src/resources/3_0_1/schemas/resourcelist.schema.js
I guess the param name should be data
instead of value
on https://github.com/Asymmetrik/graphql-fhir/blob/master/src/resources/3_0_1/schemas/resourcelist.schema.js#L131
from graphql-fhir.
Ahh yes good catch. That is an error in the generated code. I will submit a PR with this updated in all three versions.
from graphql-fhir.
Great. 👍
from graphql-fhir.
Related Issues (17)
- Testing Slack integration HOT 2
- Question - Support for FHIR release 4 HOT 3
- Resources storage structure [Question] HOT 3
- Instance Query [Question] HOT 5
- Unable to insert answerOption in Questionnaire Resource HOT 5
- New extension to an existing resource HOT 2
- Is there a plan to support graphQL directives like @flatten and @first? HOT 1
- Is the database used for persisting the responses from FHIR calls? [Question] HOT 1
- Need Help with audit events HOT 1
- Internal tool to generate FHIR profiles
- Request for running against revised FHIR specifications, particularly UKCore R4 HOT 1
- Regarding R4 HOT 2
- Regarding Microservices HOT 1
- Support for newer releases HOT 1
- Need Help: add birthPlace Extension HOT 1
- Update GraphQL to major version 16 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-fhir.