INNER CODE UNIT · JavaScript

source

grafoojs/grafoo · packages/babel-plugin/src/index.js:123

                let source = quasi.node.quasis.reduce((src, q) => src + q.value.raw, "");

                path.replaceWith(parseLiteral(compileDocument(source, opts)));
              } catch (error) {
                if (error.code === "ENOENT") {
                  throw new Error(
                    "Could not find a schema in the root directory! " +
                      "Please use the `schema` option to specify your schema path, " +
                      "or the `schemaUrl` to specify your graphql endpoint."
                  );
                }

                throw path.buildCodeFrameError(error.message);
              }
            }
          },
        });
      },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…