INNER CODE UNIT · JavaScript

idFieldsProp

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

                let idFieldsProp = args[1].properties.find((arg) => arg.key.name === "idFields");

                if (idFieldsProp) {
                  idFieldsProp.value = idFieldsArrayAst;
                } else {
                  args[1].properties.push(clientObjectAst);
                }
              } else {
                throw path.buildCodeFrameError(
                  callee.name +
                    " second argument must be of type object, instead got " +
                    args[1].type +
                    "."
                );
              }
            }
          },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…