node_modules.inflected.src.foreignKey.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
import underscore from "./underscore";
export default function foreignKey(className, separateWithUnderscore = true) {
return `${underscore(className)}${separateWithUnderscore ? "_id" : "id"}`;
}