Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

28 rader
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. };