You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a mesh endpoint on Firebase Functions that looks similar to the following...
import{parseConfig}from"@graphql-mesh/config";import{getMesh}from"@graphql-mesh/runtime";importconfigfrom".meshrc.json";//this is being done instead of findAndParseConfigconstmeshConfig=awaitparseConfig(config);const{execute}=awaitgetMesh(meshConfig);awaitexecute(doc,vars);
This all works except I'm having to insert an openapi.json object into the source key where I would like to use openapi.yml and converting .meshrc.yml into .meshrc.json.
When I use the yml file approach with findAndParseConfig, then I run into an error saying cannot find openapi.yml because it doesn't exist in the webpack output as a separate file. It works fine without webpack.
I have to keep webpack to make the monorepo play nicely with imports
This is a custom local openapi.yml file that does not exist through an http endpoint.
I would like to maintain the code as yml files if possible, but didn't find a clear way to do so.
The possible options I see are...
Keep the yml files and use a setup/method that's available with @graphql-mesh?
Generate json from the yml programmatically and continue what I'm doing. This seems redundant.
Changing the webpack configuration to solve this somehow.
Something else I'm not aware of.
I sense that I overlooked something and am reaching out for any guidance. Much appreciation for this library and community. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running a mesh endpoint on Firebase Functions that looks similar to the following...
This all works except I'm having to insert an
openapi.json
object into thesource
key where I would like to useopenapi.yml
and converting.meshrc.yml
into.meshrc.json
.When I use the
yml
file approach withfindAndParseConfig
, then I run into an error saying cannot findopenapi.yml
because it doesn't exist in the webpack output as a separate file. It works fine without webpack.openapi.yml
file that does not exist through anhttp
endpoint.yml
files if possible, but didn't find a clear way to do so.The possible options I see are...
yml
files and use a setup/method that's available with@graphql-mesh
?json
from theyml
programmatically and continue what I'm doing. This seems redundant.I sense that I overlooked something and am reaching out for any guidance. Much appreciation for this library and community. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions