|
- import apollo from "../../../lib/apollo";
-
- async function socialByCompany(companyId){
- var res = apollo.query(
- `
- query($input : ID!){
- socialMedias(filters:{Company:{id:{eq:$input}}}){
- data{
- attributes{
- Type
- Link
- }
- }
- }
- }
- `,"",{
- "input" : companyId
- }
- );
- return res;
- }
-
-
-
- module.exports = {
- socialByCompany:socialByCompany,
- };
|