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.
 
 

28 rivejä
447 B

  1. import apollo from "../../../lib/apollo";
  2. async function socialByCompany(companyId){
  3. var res = apollo.query(
  4. `
  5. query($input : ID!){
  6. socialMedias(filters:{Company:{id:{eq:$input}}}){
  7. data{
  8. attributes{
  9. Type
  10. Link
  11. }
  12. }
  13. }
  14. }
  15. `,"",{
  16. "input" : companyId
  17. }
  18. );
  19. return res;
  20. }
  21. module.exports = {
  22. socialByCompany:socialByCompany,
  23. };