You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 rivejä
390 B

  1. import apollo from "../../lib/apollo.js";
  2. async function getID(partner, token = "") {
  3. var res = await apollo.query(
  4. `
  5. query($input : String!){
  6. businessPartners(where:{name_contains:$input}){
  7. id
  8. }
  9. }`,
  10. token,
  11. {
  12. input: partner,
  13. }
  14. );
  15. return res;
  16. }
  17. module.exports = {
  18. getID: getID,
  19. };